summaryrefslogtreecommitdiff
path: root/src/pwl.c
diff options
context:
space:
mode:
authorReuben Thomas <rrt@sc3d.org>2017-02-04 19:14:33 +0000
committerReuben Thomas <rrt@sc3d.org>2017-02-09 00:28:24 +0000
commitc65510f73ca441add000e919d588a5b625103dd9 (patch)
tree08fed4acaf880a2c41a88fa4f33d0a06bd2a8ba5 /src/pwl.c
parentedf662a5ec8db85aa6e5a5d00531ab6b8773131f (diff)
downloadenchant-c65510f73ca441add000e919d588a5b625103dd9.tar.gz
Stop supporting old glib
Diffstat (limited to 'src/pwl.c')
-rw-r--r--src/pwl.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/pwl.c b/src/pwl.c
index 0edcd9d..7fca41c 100644
--- a/src/pwl.c
+++ b/src/pwl.c
@@ -66,10 +66,6 @@
#include "pwl.h"
-#if defined(_MSC_VER)
-#pragma warning(disable: 4996) /* The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name. */
-#endif
-
#define ENCHANT_PWL_MAX_ERRORS 3
#define ENCHANT_PWL_MAX_SUGGS 15
@@ -852,23 +848,6 @@ static EnchantTrie* enchant_trie_insert(EnchantTrie* trie,const char *const word
return trie;
}
-#if !GLIB_CHECK_VERSION(2,14,0)
-static void grab_keys (gpointer key,
- gpointer value,
- gpointer user_data)
-{
- GList **l = user_data;
- *l = g_list_prepend (*l, key);
-}
-
-static GList* g_hash_table_get_keys (GHashTable *hash_table)
-{
- GList *l = NULL;
- g_hash_table_foreach (hash_table, grab_keys, &l);
- return l;
-}
-#endif
-
static void enchant_trie_remove(EnchantTrie* trie,const char *const word)
{
char *tmpWord;