mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-21 04:16:12 +00:00
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:
parent
d34349b49f
commit
b8243a2b61
src
@ -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;
|
||||
|
@ -559,7 +559,6 @@ public:
|
||||
CutterJson getFileInfo();
|
||||
CutterJson getSignatureInfo();
|
||||
CutterJson getFileVersionInfo();
|
||||
QStringList getStats();
|
||||
void setGraphEmpty(bool empty);
|
||||
bool isGraphEmpty();
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user