forked from qt-creator/qt-creator
bineditor: remove unused m_fixedSize member
This commit is contained in:
@@ -376,10 +376,9 @@ bool BinEditor::save(const QString &oldFileName, const QString &newFileName)
|
||||
return true;
|
||||
}
|
||||
|
||||
void BinEditor::setSizes(quint64 startAddr, int range, bool fixedSize, int blockSize)
|
||||
void BinEditor::setSizes(quint64 startAddr, int range, int blockSize)
|
||||
{
|
||||
m_blockSize = blockSize;
|
||||
m_fixedSize = fixedSize;
|
||||
Q_ASSERT((blockSize/16) * 16 == blockSize);
|
||||
m_emptyBlock = QByteArray(blockSize, '\0');
|
||||
m_modifiedData.clear();
|
||||
|
||||
@@ -68,7 +68,7 @@ public:
|
||||
|
||||
quint64 baseAddress() const { return m_baseAddr; }
|
||||
|
||||
Q_INVOKABLE void setSizes(quint64 startAddr, int range, bool fixedSize, int blockSize = 4096);
|
||||
Q_INVOKABLE void setSizes(quint64 startAddr, int range, int blockSize = 4096);
|
||||
int dataBlockSize() const { return m_blockSize; }
|
||||
Q_INVOKABLE void addData(quint64 block, const QByteArray &data);
|
||||
Q_INVOKABLE void setNewWindowRequestAllowed();
|
||||
@@ -193,7 +193,6 @@ private:
|
||||
int m_numVisibleLines;
|
||||
|
||||
quint64 m_baseAddr;
|
||||
bool m_fixedSize;
|
||||
|
||||
bool m_cursorVisible;
|
||||
int m_cursorPosition;
|
||||
|
||||
@@ -66,7 +66,7 @@ namespace Internal {
|
||||
|
||||
namespace { const int DataRange = 1024 * 1024; }
|
||||
|
||||
MemoryAgent::MemoryAgent(Debugger::DebuggerEngine *engine)
|
||||
MemoryAgent::MemoryAgent(DebuggerEngine *engine)
|
||||
: QObject(engine), m_engine(engine)
|
||||
{
|
||||
QTC_ASSERT(engine, /**/);
|
||||
@@ -114,7 +114,6 @@ void MemoryAgent::createBinEditor(quint64 addr)
|
||||
QMetaObject::invokeMethod(editor->widget(), "setSizes",
|
||||
Q_ARG(quint64, addr),
|
||||
Q_ARG(int, DataRange),
|
||||
Q_ARG(bool, false),
|
||||
Q_ARG(int, BinBlockSize));
|
||||
editorManager->activateEditor(editor);
|
||||
} else {
|
||||
@@ -147,7 +146,6 @@ void MemoryAgent::provideNewRange(IEditor *editor, quint64 address)
|
||||
QMetaObject::invokeMethod(editor->widget(), "setSizes",
|
||||
Q_ARG(quint64, address),
|
||||
Q_ARG(int, DataRange),
|
||||
Q_ARG(bool, false),
|
||||
Q_ARG(int, BinBlockSize));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user