[gedit/wip/reusable-code] Some header inclusions clean-up



commit de901a895aef9eae22a45e1a027a8df2ed12430e
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Mon Mar 11 23:53:43 2013 +0100

    Some header inclusions clean-up
    
    Remove also config.h from some files, because it means that those files
    are independent of the gedit config, and therefore they can be reused
    easily in other projects.

 gedit/gedit-debug.c                  |    4 ----
 gedit/gedit-document-input-stream.c  |    2 --
 gedit/gedit-document-loader.c        |    4 ----
 gedit/gedit-document-output-stream.c |    3 ---
 gedit/gedit-encodings.c              |    6 ------
 5 files changed, 0 insertions(+), 19 deletions(-)
---
diff --git a/gedit/gedit-debug.c b/gedit/gedit-debug.c
index c6e1ca6..616d0b9 100644
--- a/gedit/gedit-debug.c
+++ b/gedit/gedit-debug.c
@@ -30,10 +30,6 @@
  * $Id$
  */
 
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
 #include <stdio.h>
 #include "gedit-debug.h"
 
diff --git a/gedit/gedit-document-input-stream.c b/gedit/gedit-document-input-stream.c
index b4d53c2..b290540 100644
--- a/gedit/gedit-document-input-stream.c
+++ b/gedit/gedit-document-input-stream.c
@@ -20,8 +20,6 @@
  * Boston, MA  02110-1301  USA
  */
 
-#include "config.h"
-
 #include <glib.h>
 #include <gio/gio.h>
 #include <string.h>
diff --git a/gedit/gedit-document-loader.c b/gedit/gedit-document-loader.c
index 008fc3b..9a2f20e 100644
--- a/gedit/gedit-document-loader.c
+++ b/gedit/gedit-document-loader.c
@@ -34,8 +34,6 @@
 #include <config.h>
 #endif
 
-#include <glib/gi18n.h>
-#include <glib/gstdio.h>
 #include <gio/gio.h>
 
 #include "gedit-document-loader.h"
@@ -607,8 +605,6 @@ async_read_cb (GInputStream *stream,
                loader->priv->auto_detected_newline_type =
                        gedit_document_output_stream_detect_newline_type (GEDIT_DOCUMENT_OUTPUT_STREAM 
(loader->priv->output));
 
-
-
                write_complete (async);
 
                return;
diff --git a/gedit/gedit-document-output-stream.c b/gedit/gedit-document-output-stream.c
index 4043945..924594f 100644
--- a/gedit/gedit-document-output-stream.c
+++ b/gedit/gedit-document-output-stream.c
@@ -20,9 +20,6 @@
  * Boston, MA  02110-1301  USA
  */
 
-#include "config.h"
-
-#include <string.h>
 #include <glib.h>
 #include <glib/gi18n.h>
 #include <gio/gio.h>
diff --git a/gedit/gedit-encodings.c b/gedit/gedit-encodings.c
index ebe31fc..de3a2ca 100644
--- a/gedit/gedit-encodings.c
+++ b/gedit/gedit-encodings.c
@@ -28,17 +28,11 @@
  * $Id$
  */
 
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
 #include <string.h>
-
 #include <glib/gi18n.h>
 
 #include "gedit-encodings.h"
 
-
 struct _GeditEncoding
 {
        gint   index;


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