From 9350b8d6ed0100c6a1a613207841629fa6303928 Mon Sep 17 00:00:00 2001 From: Dees_Troy Date: Thu, 27 Sep 2012 12:38:38 -0400 Subject: Update sdcard partitioning to C++ --- partition.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'partition.cpp') diff --git a/partition.cpp b/partition.cpp index 12e1f5339..633011ba6 100644 --- a/partition.cpp +++ b/partition.cpp @@ -624,14 +624,6 @@ bool TWPartition::Find_Partition_Size(void) { return false; } -void TWPartition::Flip_Block_Device(void) { - string temp; - - temp = Alternate_Block_Device; - Primary_Block_Device = Alternate_Block_Device; - Alternate_Block_Device = temp; -} - bool TWPartition::Is_Mounted(void) { if (!Can_Be_Mounted) return false; @@ -670,6 +662,7 @@ bool TWPartition::Mount(bool Display_Error) { LOGE("Unable to mount '%s'\n", Mount_Point.c_str()); else LOGI("Unable to mount '%s'\n", Mount_Point.c_str()); + LOGI("Actual block device: '%s', current file system: '%s'\n", Actual_Block_Device.c_str(), Current_File_System.c_str()); return false; } else { if (Removable) @@ -1349,7 +1342,6 @@ void TWPartition::Find_Actual_Block_Device(void) { Is_Present = true; Actual_Block_Device = Primary_Block_Device; } else if (!Alternate_Block_Device.empty() && TWFunc::Path_Exists(Alternate_Block_Device)) { - Flip_Block_Device(); Actual_Block_Device = Primary_Block_Device; Is_Present = true; } else -- cgit v1.2.3