diff options
author | Matt Mower <mowerm@gmail.com> | 2017-01-06 21:30:33 +0100 |
---|---|---|
committer | Dees Troy <dees_troy@teamw.in> | 2017-01-18 17:50:05 +0100 |
commit | 23d8aaef2964659bd5495638d5b85f00ef3f9620 (patch) | |
tree | aab3c7f695b11213a4e7f6838d2829f2c20c5252 /gui/action.cpp | |
parent | Very minor code cleanup (diff) | |
download | android_bootable_recovery-23d8aaef2964659bd5495638d5b85f00ef3f9620.tar android_bootable_recovery-23d8aaef2964659bd5495638d5b85f00ef3f9620.tar.gz android_bootable_recovery-23d8aaef2964659bd5495638d5b85f00ef3f9620.tar.bz2 android_bootable_recovery-23d8aaef2964659bd5495638d5b85f00ef3f9620.tar.lz android_bootable_recovery-23d8aaef2964659bd5495638d5b85f00ef3f9620.tar.xz android_bootable_recovery-23d8aaef2964659bd5495638d5b85f00ef3f9620.tar.zst android_bootable_recovery-23d8aaef2964659bd5495638d5b85f00ef3f9620.zip |
Diffstat (limited to '')
-rw-r--r-- | gui/action.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/gui/action.cpp b/gui/action.cpp index f7f29e8ba..7d34da8a0 100644 --- a/gui/action.cpp +++ b/gui/action.cpp @@ -62,7 +62,6 @@ GUIAction::mapFunc GUIAction::mf; std::set<string> GUIAction::setActionsRunningInCallerThread; static string zip_queue[10]; static int zip_queue_index; -static pthread_t terminal_command; pid_t sideload_child_pid; static void *ActionThread_work_wrapper(void *data); @@ -861,7 +860,6 @@ int GUIAction::checkpartitionlist(std::string arg) int GUIAction::getpartitiondetails(std::string arg) { string List, part_path; - int count = 0; if (arg.empty()) arg = "tw_wipe_list"; @@ -1078,7 +1076,7 @@ int GUIAction::wipe(std::string arg) else if (arg == "DATAMEDIA") { ret_val = PartitionManager.Format_Data(); } else if (arg == "INTERNAL") { - int has_datamedia, dual_storage; + int has_datamedia; DataManager::GetValue(TW_HAS_DATA_MEDIA, has_datamedia); if (has_datamedia) { @@ -1097,7 +1095,6 @@ int GUIAction::wipe(std::string arg) string Wipe_List, wipe_path; bool skip = false; ret_val = true; - TWPartition* wipe_part = NULL; DataManager::GetValue("tw_wipe_list", Wipe_List); LOGINFO("wipe list '%s'\n", Wipe_List.c_str()); @@ -1384,7 +1381,7 @@ int GUIAction::terminalcommand(std::string arg) if (fp == NULL) { LOGERR("Error opening command to run (%s).\n", strerror(errno)); } else { - int fd = fileno(fp), has_data = 0, check = 0, keep_going = -1, bytes_read = 0; + int fd = fileno(fp), has_data = 0, check = 0, keep_going = -1; struct timeval timeout; fd_set fdset; @@ -1425,8 +1422,6 @@ int GUIAction::terminalcommand(std::string arg) int GUIAction::killterminal(std::string arg __unused) { - int op_status = 0; - LOGINFO("Sending kill command...\n"); operation_start("KillCommand"); DataManager::SetValue("tw_operation_status", 0); @@ -1883,7 +1878,6 @@ int GUIAction::setbootslot(std::string arg) int GUIAction::checkforapp(std::string arg __unused) { - int op_status = 1; operation_start("Check for TWRP App"); if (!simulate) { |