shell-app: Remove unused method
This commit is contained in:
parent
7ecb5af587
commit
913739d732
@ -1336,25 +1336,6 @@ unref_running_state (ShellAppRunningState *state)
|
||||
g_slice_free (ShellAppRunningState, state);
|
||||
}
|
||||
|
||||
static char *
|
||||
trim_exec_line (const char *str)
|
||||
{
|
||||
const char *start, *end, *pos;
|
||||
|
||||
if (str == NULL)
|
||||
return NULL;
|
||||
|
||||
end = strchr (str, ' ');
|
||||
if (end == NULL)
|
||||
end = str + strlen (str);
|
||||
|
||||
start = str;
|
||||
while ((pos = strchr (start, '/')) && pos < end)
|
||||
start = ++pos;
|
||||
|
||||
return g_strndup (start, end - start);
|
||||
}
|
||||
|
||||
/**
|
||||
* shell_app_compare_by_name:
|
||||
* @app: One app
|
||||
|
Loading…
x
Reference in New Issue
Block a user