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

Commit 7db889c7 authored by Jesse Hall's avatar Jesse Hall Committed by Android (Google) Code Review
Browse files

Merge "Remove unused getProcessCmdline function"

parents f4237c11 feb7c743
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;