[gedit/wip/reusable-code] DocumentSaver: remove dead code



commit c529d1913785346f6efafbdb9a4d7ce691f0c715
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Mon Sep 16 18:20:27 2013 +0200

    DocumentSaver: remove dead code
    
    One dependency to GeditDocument removed easily, yay!

 gedit/gedit-document-saver.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/gedit/gedit-document-saver.c b/gedit/gedit-document-saver.c
index 24f333d..5304cf0 100644
--- a/gedit/gedit-document-saver.c
+++ b/gedit/gedit-document-saver.c
@@ -718,7 +718,6 @@ async_replace_ready_callback (GFile        *source,
        GCharsetConverter *converter;
        GFileOutputStream *file_stream;
        GOutputStream *base_stream;
-       gchar *content_type;
        GError *error = NULL;
        gboolean ensure_trailing_newline;
 
@@ -747,8 +746,6 @@ async_replace_ready_callback (GFile        *source,
                return;
        }
 
-       content_type = gedit_document_get_content_type (saver->priv->document);
-
        if (saver->priv->compression_type == GEDIT_DOCUMENT_COMPRESSION_TYPE_GZIP)
        {
                GZlibCompressor *compressor;
@@ -771,8 +768,6 @@ async_replace_ready_callback (GFile        *source,
                base_stream = G_OUTPUT_STREAM (file_stream);
        }
 
-       g_free (content_type);
-
        /* FIXME: manage converter error? */
        DEBUG ({
               g_print ("Encoding charset: %s\n",


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