diff options
author | Ethan Yonker <dees_troy@teamw.in> | 2016-04-02 05:39:22 +0200 |
---|---|---|
committer | Ethan Yonker <dees_troy@teamw.in> | 2016-04-02 05:39:22 +0200 |
commit | 308b1cadc40c1a35caa07b39133a291004e6553b (patch) | |
tree | b07d6b59dbcbfe79bf3b7f9cd5f529857099c152 /partitionmanager.cpp | |
parent | 3.0.1-0 (diff) | |
download | android_bootable_recovery-308b1cadc40c1a35caa07b39133a291004e6553b.tar android_bootable_recovery-308b1cadc40c1a35caa07b39133a291004e6553b.tar.gz android_bootable_recovery-308b1cadc40c1a35caa07b39133a291004e6553b.tar.bz2 android_bootable_recovery-308b1cadc40c1a35caa07b39133a291004e6553b.tar.lz android_bootable_recovery-308b1cadc40c1a35caa07b39133a291004e6553b.tar.xz android_bootable_recovery-308b1cadc40c1a35caa07b39133a291004e6553b.tar.zst android_bootable_recovery-308b1cadc40c1a35caa07b39133a291004e6553b.zip |
Diffstat (limited to '')
-rw-r--r-- | partitionmanager.cpp | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/partitionmanager.cpp b/partitionmanager.cpp index 0034feac7..c2ef5f563 100644 --- a/partitionmanager.cpp +++ b/partitionmanager.cpp @@ -1327,24 +1327,6 @@ void TWPartitionManager::Update_System_Details(void) { } else DataManager::SetValue("tw_has_boot_partition", 1); } -#ifdef SP1_NAME - if ((*iter)->Backup_Name == EXPAND(SP1_NAME)) { - int backup_display_size = (int)((*iter)->Backup_Size / 1048576LLU); - DataManager::SetValue(TW_BACKUP_SP1_SIZE, backup_display_size); - } -#endif -#ifdef SP2_NAME - if ((*iter)->Backup_Name == EXPAND(SP2_NAME)) { - int backup_display_size = (int)((*iter)->Backup_Size / 1048576LLU); - DataManager::SetValue(TW_BACKUP_SP2_SIZE, backup_display_size); - } -#endif -#ifdef SP3_NAME - if ((*iter)->Backup_Name == EXPAND(SP3_NAME)) { - int backup_display_size = (int)((*iter)->Backup_Size / 1048576LLU); - DataManager::SetValue(TW_BACKUP_SP3_SIZE, backup_display_size); - } -#endif } else { // Handle unmountable partitions in case we reset defaults if ((*iter)->Mount_Point == "/boot") { @@ -1366,24 +1348,6 @@ void TWPartitionManager::Update_System_Details(void) { } else if ((*iter)->Mount_Point == "/data") { data_size += (int)((*iter)->Backup_Size / 1048576LLU); } -#ifdef SP1_NAME - if ((*iter)->Backup_Name == EXPAND(SP1_NAME)) { - int backup_display_size = (int)((*iter)->Backup_Size / 1048576LLU); - DataManager::SetValue(TW_BACKUP_SP1_SIZE, backup_display_size); - } -#endif -#ifdef SP2_NAME - if ((*iter)->Backup_Name == EXPAND(SP2_NAME)) { - int backup_display_size = (int)((*iter)->Backup_Size / 1048576LLU); - DataManager::SetValue(TW_BACKUP_SP2_SIZE, backup_display_size); - } -#endif -#ifdef SP3_NAME - if ((*iter)->Backup_Name == EXPAND(SP3_NAME)) { - int backup_display_size = (int)((*iter)->Backup_Size / 1048576LLU); - DataManager::SetValue(TW_BACKUP_SP3_SIZE, backup_display_size); - } -#endif } } gui_msg("update_part_details_done=...done"); |