OSDN Git Service

Remove dead code.
authorElliott Hughes <enh@google.com>
Sat, 15 Aug 2015 01:41:14 +0000 (18:41 -0700)
committerElliott Hughes <enh@google.com>
Sat, 15 Aug 2015 01:41:14 +0000 (18:41 -0700)
Change-Id: I042f8aacfa8a7900b5684aaa24da368cdcb41b1f

Fat.cpp

diff --git a/Fat.cpp b/Fat.cpp
index 018fbeb..0c0bdaa 100644 (file)
--- a/Fat.cpp
+++ b/Fat.cpp
@@ -124,20 +124,6 @@ int Fat::doMount(const char *fsPath, const char *mountPoint,
     flags |= (ro ? MS_RDONLY : 0);
     flags |= (remount ? MS_REMOUNT : 0);
 
-    /*
-     * Note: This is a temporary hack. If the sampling profiler is enabled,
-     * we make the SD card world-writable so any process can write snapshots.
-     *
-     * TODO: Remove this code once we have a drop box in system_server.
-     */
-    char value[PROPERTY_VALUE_MAX];
-    property_get("persist.sampling_profiler", value, "");
-    if (value[0] == '1') {
-        SLOGW("The SD card is world-writable because the"
-            " 'persist.sampling_profiler' system property is set to '1'.");
-        permMask = 0;
-    }
-
     sprintf(mountData,
             "utf8,uid=%d,gid=%d,fmask=%o,dmask=%o,shortname=mixed",
             ownerUid, ownerGid, permMask, permMask);