[gedit] utils: remove useless #include's



commit 2099744d997739c6b14b90d95c71c1b25691c056
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Wed Apr 29 11:38:49 2015 +0200

    utils: remove useless #include's
    
    The annoying #include's were gedit-document.h and config.h. Now that
    they are removed, gedit-utils can be copied into other apps.

 gedit/gedit-utils.c |   21 ---------------------
 gedit/gedit-utils.h |    4 ----
 2 files changed, 0 insertions(+), 25 deletions(-)
---
diff --git a/gedit/gedit-utils.c b/gedit/gedit-utils.c
index d8e0706..8ef9f75 100644
--- a/gedit/gedit-utils.c
+++ b/gedit/gedit-utils.c
@@ -20,38 +20,17 @@
  * along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
 #include "gedit-utils.h"
 
-#include <errno.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <sys/time.h>
-#include <fcntl.h>
 #include <string.h>
-
-#include <glib.h>
 #include <glib/gi18n.h>
-#include <glib/gstdio.h>
-#include <gio/gio.h>
 
 /* For the workspace/viewport stuff */
 #ifdef GDK_WINDOWING_X11
 #include <gdk/gdkx.h>
-#include <X11/Xlib.h>
-#include <X11/Xutil.h>
 #include <X11/Xatom.h>
 #endif
 
-#ifdef G_OS_UNIX
-#include <unistd.h>
-#include <sys/stat.h>
-#endif
-
-#include "gedit-document.h"
 #include "gedit-debug.h"
 
 static void
diff --git a/gedit/gedit-utils.h b/gedit/gedit-utils.h
index 4c15c27..c19e4f2 100644
--- a/gedit/gedit-utils.h
+++ b/gedit/gedit-utils.h
@@ -23,10 +23,6 @@
 #ifndef __GEDIT_UTILS_H__
 #define __GEDIT_UTILS_H__
 
-#include <glib.h>
-#include <gtk/gtk.h>
-#include <atk/atk.h>
-#include <gedit/gedit-document.h>
 #include <gtksourceview/gtksource.h>
 
 G_BEGIN_DECLS


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