Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit feb7c743 authored by Jesse Hall's avatar Jesse Hall
Browse files

Remove unused getProcessCmdline function

This was part of a hack that has long since been removed
(see d75f84d6).

Test: mmm frameworks/native/opengl/libs
Change-Id: I42e1e27615e87345f617a45c2ea30a44cc226f2f
parent db610546
Loading
Loading
Loading
Loading
+0 −18
Original line number Diff line number Diff line
@@ -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;