summaryrefslogtreecommitdiff
path: root/utils/messages.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/messages.c')
-rw-r--r--utils/messages.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/utils/messages.c b/utils/messages.c
index f2ed3e037..3b5b6d662 100644
--- a/utils/messages.c
+++ b/utils/messages.c
@@ -53,7 +53,7 @@ static unsigned int messages_hash(const char *s);
void messages_load(const char *path)
{
- char s[300];
+ char s[400];
FILE *fp;
fp = fopen(path, "r");
@@ -121,23 +121,6 @@ const char *messages_get(const char *key)
return entry->value;
}
-/**
- * Retrieve the key associated with a value
- *
- * \param value The value as returned by messages_get
- * \return The key associated with the value or NULL if not found
- */
-const char *messages_get_key(const char *value)
-{
- const char *key = value - MAX_KEY_LENGTH;
- const char *temp_value = messages_get(key);
-
- if (strcmp(value, temp_value) == 0)
- return key;
-
- return NULL;
-}
-
/**
* Hash function for keys.