summaryrefslogtreecommitdiffstats
path: root/data.cpp
diff options
context:
space:
mode:
authorMatt Mower <mowerm@gmail.com>2015-12-04 05:26:55 +0100
committerEthan Yonker <dees_troy@teamw.in>2015-12-22 22:15:54 +0100
commit2d50cada066e7c84ebb5b7a3d973a35853cb9412 (patch)
tree0e29bcc9827790ab8030e498498ead351b17858e /data.cpp
parentpixelflinger: Fix local src arch includes (diff)
downloadandroid_bootable_recovery-2d50cada066e7c84ebb5b7a3d973a35853cb9412.tar
android_bootable_recovery-2d50cada066e7c84ebb5b7a3d973a35853cb9412.tar.gz
android_bootable_recovery-2d50cada066e7c84ebb5b7a3d973a35853cb9412.tar.bz2
android_bootable_recovery-2d50cada066e7c84ebb5b7a3d973a35853cb9412.tar.lz
android_bootable_recovery-2d50cada066e7c84ebb5b7a3d973a35853cb9412.tar.xz
android_bootable_recovery-2d50cada066e7c84ebb5b7a3d973a35853cb9412.tar.zst
android_bootable_recovery-2d50cada066e7c84ebb5b7a3d973a35853cb9412.zip
Diffstat (limited to '')
-rw-r--r--data.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/data.cpp b/data.cpp
index 6b0f97131..629b4c895 100644
--- a/data.cpp
+++ b/data.cpp
@@ -523,13 +523,7 @@ int DataManager::SetValue(const string varName, int value, int persist /* = 0 */
if (varName == "tw_use_external_storage") {
string str;
- if (GetIntValue(TW_HAS_DUAL_STORAGE) == 1) {
- if (value == 0) {
- str = GetStrValue(TW_INTERNAL_PATH);
- } else {
- str = GetStrValue(TW_EXTERNAL_PATH);
- }
- } else if (GetIntValue(TW_HAS_INTERNAL) == 1)
+ if (GetIntValue(TW_HAS_INTERNAL) == 1)
str = GetStrValue(TW_INTERNAL_PATH);
else
str = GetStrValue(TW_EXTERNAL_PATH);