mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-11 07:30:54 +00:00
libsysprof-analyze: remove unused function
No need for the "peek" variant, so just remove it.
This commit is contained in:
@ -31,8 +31,6 @@ SysprofStrings *sysprof_strings_ref (SysprofStrings *self);
|
|||||||
void sysprof_strings_unref (SysprofStrings *self);
|
void sysprof_strings_unref (SysprofStrings *self);
|
||||||
GRefString *sysprof_strings_get (SysprofStrings *self,
|
GRefString *sysprof_strings_get (SysprofStrings *self,
|
||||||
const char *string);
|
const char *string);
|
||||||
GRefString *sysprof_strings_lookup (SysprofStrings *self,
|
|
||||||
const char *string);
|
|
||||||
|
|
||||||
#define SYSPROF_STRV_INIT(...) ((const char * const[]){__VA_ARGS__,NULL})
|
#define SYSPROF_STRV_INIT(...) ((const char * const[]){__VA_ARGS__,NULL})
|
||||||
|
|
||||||
|
|||||||
@ -84,19 +84,3 @@ sysprof_strings_get (SysprofStrings *self,
|
|||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
GRefString *
|
|
||||||
sysprof_strings_lookup (SysprofStrings *self,
|
|
||||||
const char *string)
|
|
||||||
{
|
|
||||||
GRefString *ret;
|
|
||||||
|
|
||||||
if (string == NULL)
|
|
||||||
return NULL;
|
|
||||||
|
|
||||||
g_mutex_lock (&self->mutex);
|
|
||||||
ret = g_hash_table_lookup (self->hashtable, string);
|
|
||||||
g_mutex_unlock (&self->mutex);
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user