remove dead code
This commit is contained in:
parent
546681a0ef
commit
6ac8c3e67b
@ -31,16 +31,6 @@ static const int BdbPointerRole = Qt::UserRole + 1;
|
||||
#define SET_BDB(top, bdb) top->setData(0, BdbPointerRole, QVariant::fromValue<void*>(static_cast<void*>(bdb)))
|
||||
#define GET_BDB(top) static_cast<BoltDB*>( top->data(0, BdbPointerRole).value<void*>() )
|
||||
|
||||
/*
|
||||
static BoltDB* GET_BDB(QTreeWidgetItem *top) {
|
||||
while(top->parent() != nullptr) {
|
||||
top = top->parent();
|
||||
}
|
||||
|
||||
return static_cast<BoltDB*>( top->data(0, BdbPointerRole).value<void*>() );
|
||||
}
|
||||
*/
|
||||
|
||||
void MainWindow::on_actionOpen_database_triggered()
|
||||
{
|
||||
QString file = QFileDialog::getOpenFileName(this, tr("Select bolt database..."));
|
||||
@ -70,7 +60,6 @@ void MainWindow::on_actionOpen_database_triggered()
|
||||
|
||||
void MainWindow::refreshBucketTree(QTreeWidgetItem* itm)
|
||||
{
|
||||
// ui->bucketTree->clearSelection();
|
||||
QTreeWidgetItem *top = itm;
|
||||
QStringList browsePath;
|
||||
while(top->parent() != nullptr) {
|
||||
@ -82,11 +71,7 @@ void MainWindow::refreshBucketTree(QTreeWidgetItem* itm)
|
||||
for (int i = itm->childCount(); i --> 0;) {
|
||||
delete itm->takeChild(i);
|
||||
}
|
||||
/*
|
||||
if (browsePath.size() > 1) {
|
||||
return; // only go one level deep
|
||||
}
|
||||
*/
|
||||
|
||||
auto *bdb = GET_BDB(top);
|
||||
|
||||
QString error;
|
||||
|
Loading…
Reference in New Issue
Block a user