From 8ac815b63975db5ea2b06550833de55d0297ee14 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Tue, 31 Oct 2017 01:27:48 -0400 Subject: src/about.c: Delete static parse_query_string() --- (limited to 'src') diff --git a/src/about.c b/src/about.c index c00137d..e4499f2 100644 --- a/src/about.c +++ b/src/about.c @@ -28,43 +28,7 @@ #include "about/paths.h" #include "application.h" #include "resources.h" - -static GHashTable * -parse_query_string(gchar *str) -{ - GHashTable *hash_table; - gchar *key; - gchar *val; - - hash_table = g_hash_table_new_full(g_str_hash, g_str_equal, - g_free, g_free); - - while (*str) { - key = str; - for (; *str && *str != '='; ++str); - if (!*str) { - g_hash_table_insert(hash_table, - g_uri_unescape_string(key, NULL), NULL); - break; - } - *str = '\0'; - val = ++str; - for (; *str && *str != '&'; ++str); - if (!*str) { - g_hash_table_insert(hash_table, - g_uri_unescape_string(key, NULL), - g_uri_unescape_string(val, NULL)); - break; - } - *str = '\0'; - g_hash_table_insert(hash_table, - g_uri_unescape_string(key, NULL), - g_uri_unescape_string(val, NULL)); - ++str; - } - - return hash_table; -} +#include "string-utils.h" void mq_about_request(WebKitURISchemeRequest *request, MqApplication *application) -- cgit v0.9.1