Remove unused stats query (#2903)

The views showing this info have been removed in the past, so it was
unused. This also fixes some errors with latest rizin where
zero-argument f does not exist anymore (it's now fl).
This commit is contained in:
Florian Märkl 2022-03-14 10:09:35 +01:00 committed by Anton Kochkov
parent 518014ee19
commit b0c2dea772
3 changed files with 0 additions and 30 deletions

View File

@ -2653,32 +2653,6 @@ QList<MemoryMapDescription> CutterCore::getMemoryMap()
return ret;
}
QStringList CutterCore::getStats()
{
QStringList stats;
cmdRaw("fs functions");
// The cmd coomand is frequently used in this function because
// cmdRaw would not work with grep
stats << cmd("f~?").trimmed();
QString imps = cmd("ii~?").trimmed();
stats << imps;
cmdRaw("fs symbols");
stats << cmd("f~?").trimmed();
cmdRaw("fs strings");
stats << cmd("f~?").trimmed();
cmdRaw("fs relocs");
stats << cmd("f~?").trimmed();
cmdRaw("fs sections");
stats << cmd("f~?").trimmed();
cmdRaw("fs *");
stats << cmd("f~?").trimmed();
return stats;
}
void CutterCore::setGraphEmpty(bool empty)
{
emptyGraph = empty;

View File

@ -559,7 +559,6 @@ public:
CutterJson getFileInfo();
CutterJson getSignatureInfo();
CutterJson getFileVersionInfo();
QStringList getStats();
void setGraphEmpty(bool empty);
bool isGraphEmpty();

View File

@ -151,9 +151,6 @@ void Dashboard::updateContents()
QSpacerItem *spacer = new QSpacerItem(1, 1, QSizePolicy::Fixed, QSizePolicy::Expanding);
ui->verticalLayout_2->addSpacerItem(spacer);
// Get stats for the graphs
QStringList stats = Core()->getStats();
// Check if signature info and version info available
if (!Core()->getSignatureInfo().size()) {
ui->certificateButton->setEnabled(false);