[gspell/wip/icu: 4/5] init: remove get_dll()




commit 4b0928c64da82dc6b2444d1e2384aac5bc0b0df5
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Tue Oct 6 01:55:07 2020 +0200

    init: remove get_dll()
    
    It's now dead code. It was used for the iso-codes package, but now the
    libicu is used.
    
    https://gitlab.gnome.org/GNOME/gspell/-/issues/14

 docs/reference/Makefile.am |  1 -
 gspell/Makefile.am         |  1 -
 gspell/gspell-init.c       | 11 +++--------
 gspell/gspell-init.h       | 37 -------------------------------------
 4 files changed, 3 insertions(+), 47 deletions(-)
---
diff --git a/docs/reference/Makefile.am b/docs/reference/Makefile.am
index b5fa4e8..3812022 100644
--- a/docs/reference/Makefile.am
+++ b/docs/reference/Makefile.am
@@ -37,7 +37,6 @@ IGNORE_HFILES =                                       \
        gspell-entry-private.h                  \
        gspell-entry-utils.h                    \
        gspell-icu.h                            \
-       gspell-init.h                           \
        gspell-inline-checker-text-buffer.h     \
        gspell-osx.h                            \
        gspell-text-iter.h                      \
diff --git a/gspell/Makefile.am b/gspell/Makefile.am
index d12a551..69ee421 100644
--- a/gspell/Makefile.am
+++ b/gspell/Makefile.am
@@ -54,7 +54,6 @@ gspell_private_headers =                      \
        gspell-entry-private.h                  \
        gspell-entry-utils.h                    \
        gspell-icu.h                            \
-       gspell-init.h                           \
        gspell-inline-checker-text-buffer.h     \
        gspell-text-iter.h                      \
        gspell-utils.h
diff --git a/gspell/gspell-init.c b/gspell/gspell-init.c
index ef8a69d..683d2f0 100644
--- a/gspell/gspell-init.c
+++ b/gspell/gspell-init.c
@@ -1,7 +1,7 @@
 /*
  * This file is part of gspell, a spell-checking library.
  *
- * Copyright 2015, 2016 - Sébastien Wilmet <swilmet gnome org>
+ * Copyright 2015, 2016, 2020 - Sébastien Wilmet <swilmet gnome org>
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -27,11 +27,12 @@
 #include "config.h"
 #endif
 
-#include "gspell-init.h"
 #include <glib/gi18n-lib.h>
 #include "gconstructor.h"
 
 #ifdef G_OS_WIN32
+#define WIN32_LEAN_AND_MEAN
+#include <windows.h>
 static HMODULE gspell_dll;
 #endif
 
@@ -149,12 +150,6 @@ DllMain (HINSTANCE hinstDLL,
        return TRUE;
 }
 
-HMODULE
-_gspell_init_get_dll (void)
-{
-       return gspell_dll;
-}
-
 #elif defined (G_HAS_CONSTRUCTORS)
 
 #  ifdef G_DEFINE_CONSTRUCTOR_NEEDS_PRAGMA


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]