OSDN Git Service

Remove unused getProcessCmdline function
authorJesse Hall <jessehall@google.com>
Thu, 15 Dec 2016 22:49:31 +0000 (14:49 -0800)
committerJesse Hall <jessehall@google.com>
Thu, 15 Dec 2016 22:49:31 +0000 (14:49 -0800)
This was part of a hack that has long since been removed
(see d75f84d641).

Test: mmm frameworks/native/opengl/libs
Change-Id: I42e1e27615e87345f617a45c2ea30a44cc226f2f

opengl/libs/EGL/Loader.cpp

index 49f501d..459fd50 100644 (file)
@@ -98,24 +98,6 @@ checkGlesEmulationStatus(void)
 
 // ----------------------------------------------------------------------------
 
-static char const * getProcessCmdline() {
-    long pid = getpid();
-    char procPath[128];
-    snprintf(procPath, 128, "/proc/%ld/cmdline", pid);
-    FILE * file = fopen(procPath, "r");
-    if (file) {
-        static char cmdline[256];
-        char *str = fgets(cmdline, sizeof(cmdline) - 1, file);
-        fclose(file);
-        if (str) {
-            return cmdline;
-        }
-    }
-    return NULL;
-}
-
-// ----------------------------------------------------------------------------
-
 Loader::driver_t::driver_t(void* gles)
 {
     dso[0] = gles;