diff --git a/src/widgets/DisassemblerGraphView.cpp b/src/widgets/DisassemblerGraphView.cpp index 69f87e5b04..7dac8f1160 100644 --- a/src/widgets/DisassemblerGraphView.cpp +++ b/src/widgets/DisassemblerGraphView.cpp @@ -345,7 +345,6 @@ void DisassemblerGraphView::prepareGraphNode(GraphBlock &block) lw += mFontMetrics->width(part.text); if (lw > width) width = lw; - height += 1; } for (Instr &instr : db.instrs) { for (auto &line : instr.text.lines) { @@ -469,11 +468,6 @@ void DisassemblerGraphView::drawBlock(QPainter &p, GraphView::GraphBlock &block, // Render node text auto x = block.x + padding; int y = block.y + getTextOffset(0).y(); - for (auto &line : db.header_text.lines) { - RichTextPainter::paintRichText(&p, x, y, block.width, charHeight, 0, line, - mFontMetrics.get()); - y += charHeight; - } auto bih = Core()->getBIHighlighter(); for (const Instr &instr : db.instrs) { diff --git a/src/widgets/DisassemblerGraphView.h b/src/widgets/DisassemblerGraphView.h index c5f10bb166..80bc37bc68 100644 --- a/src/widgets/DisassemblerGraphView.h +++ b/src/widgets/DisassemblerGraphView.h @@ -108,7 +108,6 @@ class DisassemblerGraphView : public CutterGraphView void loadCurrentGraph(); QString windowTitle; - int getWidth() { return width; } int getHeight() { return height; } std::unordered_map getBlocks() { return blocks; }