From 7595c611d7098534b58dd7d4b0b2e4aee4018f39 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Tue, 20 Jun 2023 13:39:09 -0700 Subject: [PATCH] libsysprof-analyze: remove unused function No need for the "peek" variant, so just remove it. --- src/libsysprof-analyze/sysprof-strings-private.h | 2 -- src/libsysprof-analyze/sysprof-strings.c | 16 ---------------- 2 files changed, 18 deletions(-) diff --git a/src/libsysprof-analyze/sysprof-strings-private.h b/src/libsysprof-analyze/sysprof-strings-private.h index a4faae2d..8ea14608 100644 --- a/src/libsysprof-analyze/sysprof-strings-private.h +++ b/src/libsysprof-analyze/sysprof-strings-private.h @@ -31,8 +31,6 @@ SysprofStrings *sysprof_strings_ref (SysprofStrings *self); void sysprof_strings_unref (SysprofStrings *self); GRefString *sysprof_strings_get (SysprofStrings *self, const char *string); -GRefString *sysprof_strings_lookup (SysprofStrings *self, - const char *string); #define SYSPROF_STRV_INIT(...) ((const char * const[]){__VA_ARGS__,NULL}) diff --git a/src/libsysprof-analyze/sysprof-strings.c b/src/libsysprof-analyze/sysprof-strings.c index a7c13f4e..421da461 100644 --- a/src/libsysprof-analyze/sysprof-strings.c +++ b/src/libsysprof-analyze/sysprof-strings.c @@ -84,19 +84,3 @@ sysprof_strings_get (SysprofStrings *self, 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; -}