From b5fd1259c3c576ac9e4796ab83ee3fe34efa8d76 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Tue, 7 Mar 2023 23:20:44 +0100 Subject: [PATCH] opkg_manager: remove unused member menu_offset Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/2881c9781e808bf8fafe7466153d2ba4f0602103 Author: Thilo Graf Date: 2023-03-07 (Tue, 07 Mar 2023) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/opkg_manager.cpp | 4 +--- src/gui/opkg_manager.h | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/gui/opkg_manager.cpp b/src/gui/opkg_manager.cpp index 61dc85824..629e8774f 100644 --- a/src/gui/opkg_manager.cpp +++ b/src/gui/opkg_manager.cpp @@ -161,7 +161,7 @@ int COPKGManager::exec(CMenuTarget* parent, const string &actionKey) return ret; } - int selected = menu->getSelected()/* - menu_offset*/; + int selected = menu->getSelected(); string pkg_name = menu->getItem(selected)->getName(); if (expert_mode && actionKey == "rc_blue") { @@ -769,8 +769,6 @@ int COPKGManager::showMenu() menu->addItem(GenericMenuSeparatorLine); - menu_offset = menu->getItemsCount(); - menu->addKey(CRCInput::RC_help, this, "rc_info"); menu->addKey(CRCInput::RC_info, this, "rc_info"); menu->addKey(CRCInput::RC_blue, this, "rc_blue"); diff --git a/src/gui/opkg_manager.h b/src/gui/opkg_manager.h index e7b9c9430..f1f674913 100644 --- a/src/gui/opkg_manager.h +++ b/src/gui/opkg_manager.h @@ -81,7 +81,6 @@ class COPKGManager : public CMenuTarget, public COPKGManagerExtra bool list_upgradeable_done; bool installed; bool expert_mode; - int menu_offset; std::string *local_dir; bool has_err;