Whitespace cleanup
Change-Id: I93c65973679894bb8587da4b38b410d38036b8bd
This commit is contained in:
@@ -569,7 +569,6 @@ bool TWPartitionManager::Make_MD5(PartitionSettings *part_settings)
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
bool TWPartitionManager::Backup_Partition(PartitionSettings *part_settings) {
|
||||
time_t start, stop;
|
||||
int use_compression, adb_control_bu_fd;
|
||||
@@ -730,7 +729,6 @@ int TWPartitionManager::Run_Backup(bool adbbackup) {
|
||||
if (!Mount_Current_Storage(true))
|
||||
return false;
|
||||
|
||||
|
||||
DataManager::GetValue(TW_SKIP_MD5_GENERATE_VAR, do_md5);
|
||||
if (do_md5 == 0)
|
||||
part_settings.generate_md5 = true;
|
||||
@@ -842,7 +840,6 @@ int TWPartitionManager::Run_Backup(bool adbbackup) {
|
||||
part_settings.Part = Find_Partition_By_Path(backup_path);
|
||||
if (part_settings.Part != NULL) {
|
||||
if (!Backup_Partition(&part_settings))
|
||||
|
||||
return false;
|
||||
} else {
|
||||
gui_msg(Msg(msg::kError, "unable_to_locate_partition=Unable to locate '{1}' partition for backup calculations.")(backup_path));
|
||||
@@ -920,7 +917,6 @@ bool TWPartitionManager::Restore_Partition(PartitionSettings *part_settings) {
|
||||
|
||||
time(&Start);
|
||||
|
||||
|
||||
if (!part_settings->Part->Restore(part_settings)) {
|
||||
TWFunc::SetPerformanceMode(false);
|
||||
return false;
|
||||
@@ -2078,13 +2074,13 @@ TWPartition *TWPartitionManager::Get_Default_Storage_Partition()
|
||||
{
|
||||
TWPartition *res = NULL;
|
||||
for (std::vector<TWPartition*>::iterator iter = Partitions.begin(); iter != Partitions.end(); ++iter) {
|
||||
if(!(*iter)->Is_Storage)
|
||||
if (!(*iter)->Is_Storage)
|
||||
continue;
|
||||
|
||||
if((*iter)->Is_Settings_Storage)
|
||||
if ((*iter)->Is_Settings_Storage)
|
||||
return *iter;
|
||||
|
||||
if(!res)
|
||||
if (!res)
|
||||
res = *iter;
|
||||
}
|
||||
return res;
|
||||
|
||||
Reference in New Issue
Block a user