aboutsummaryrefslogtreecommitdiffstats
path: root/android/main-common.c
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@android.com>2011-02-24 16:48:19 +0100
committerDavid 'Digit' Turner <digit@android.com>2011-03-01 15:07:12 +0100
commite5af8a259e619973538f393011b1c26a3e2f4afb (patch)
tree8522658803d023b6d64e066a41092956ff0cb4bc /android/main-common.c
parent092361e19ecc2992965729538984354099eea8cb (diff)
downloadexternal_qemu-e5af8a259e619973538f393011b1c26a3e2f4afb.zip
external_qemu-e5af8a259e619973538f393011b1c26a3e2f4afb.tar.gz
external_qemu-e5af8a259e619973538f393011b1c26a3e2f4afb.tar.bz2
Remove CONFIG_ANDROID_SNAPSHOTS macro.
The feature is no longer optional. Change-Id: I4558f12e3804e42069e8a3e6bcf0837d350206ed
Diffstat (limited to 'android/main-common.c')
-rw-r--r--android/main-common.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/android/main-common.c b/android/main-common.c
index 5987f55..05108a1 100644
--- a/android/main-common.c
+++ b/android/main-common.c
@@ -726,11 +726,9 @@ AvdInfo* createAVD(AndroidOptions* opts, int* inAndroidBuild)
if (opts->wipe_data) {
android_avdParams->flags |= AVDINFO_WIPE_DATA | AVDINFO_WIPE_CACHE;
}
-#if CONFIG_ANDROID_SNAPSHOTS
if (opts->no_snapstorage) {
android_avdParams->flags |= AVDINFO_NO_SNAPSHOTS;
}
-#endif
/* legacy support: we used to use -system <dir> and -image <file>
* instead of -sysdir <dir> and -system <file>, so handle this by checking
@@ -866,7 +864,6 @@ AvdInfo* createAVD(AndroidOptions* opts, int* inAndroidBuild)
}
}
-#if CONFIG_ANDROID_SNAPSHOTS
if (!opts->snapstorage && opts->datadir) {
bufprint(tmp, tmpend, "%s/snapshots.img", opts->datadir);
if (path_exists(tmp)) {
@@ -874,7 +871,6 @@ AvdInfo* createAVD(AndroidOptions* opts, int* inAndroidBuild)
D("autoconfig: -snapstorage %s", opts->snapstorage);
}
}
-#endif // CONFIG_ANDROID_SNAPSHOTS
}
/* if certain options are set, we can force the path of
@@ -886,9 +882,7 @@ AvdInfo* createAVD(AndroidOptions* opts, int* inAndroidBuild)
_forceAvdImagePath(AVD_IMAGE_USERDATA, opts->data, "user data", 0);
_forceAvdImagePath(AVD_IMAGE_CACHE, opts->cache, "cache", 0);
_forceAvdImagePath(AVD_IMAGE_SDCARD, opts->sdcard, "SD Card", 0);
-#if CONFIG_ANDROID_SNAPSHOTS
_forceAvdImagePath(AVD_IMAGE_SNAPSHOTS, opts->snapstorage, "snapshots", 0);
-#endif
/* we don't accept -skindir without -skin now
* to simplify the autoconfig stuff with virtual devices
@@ -1022,9 +1016,7 @@ updateHwConfigFromAVD(AndroidHwConfig* hwConfig,
_update_hwconfig_path(&hwConfig->disk_dataPartition_path, avd, AVD_IMAGE_INITDATA);
_update_hwconfig_path(&hwConfig->disk_sdCard_path, avd, AVD_IMAGE_SDCARD);
_update_hwconfig_path(&hwConfig->disk_cachePartition_path, avd, AVD_IMAGE_CACHE);
-#if CONFIG_ANDROID_SNAPSHOTS
_update_hwconfig_path(&hwConfig->disk_snapshots_path, avd, AVD_IMAGE_SNAPSHOTS);
-#endif // CONFIG_ANDROID_SNAPSHOTS
if (opts->partition_size) {
char* end;