[gtksourceview/wip/loader-saver] FileLoader: remove useless properties



commit b76d13f95eefdaaa488a9e23f58a588aaa8eff58
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Fri Mar 28 17:45:33 2014 +0100

    FileLoader: remove useless properties

 gtksourceview/gtksourcefileloader.c |   38 -----------------------------------
 1 files changed, 0 insertions(+), 38 deletions(-)
---
diff --git a/gtksourceview/gtksourcefileloader.c b/gtksourceview/gtksourcefileloader.c
index 5a7f33e..970d1a4 100644
--- a/gtksourceview/gtksourcefileloader.c
+++ b/gtksourceview/gtksourcefileloader.c
@@ -41,8 +41,6 @@ enum
        PROP_BUFFER,
        PROP_FILE,
        PROP_INPUT_STREAM,
-       PROP_NEWLINE_TYPE, /* FIXME needed? */
-       PROP_COMPRESSION_TYPE, /* FIXME needed? */
        PROP_REMOVE_TRAILING_NEWLINE
 };
 
@@ -141,14 +139,6 @@ gtk_source_file_loader_set_property (GObject      *object,
                        loader->priv->input_stream_property = g_value_dup_object (value);
                        break;
 
-               case PROP_NEWLINE_TYPE:
-                       loader->priv->auto_detected_newline_type = g_value_get_enum (value);
-                       break;
-
-               case PROP_COMPRESSION_TYPE:
-                       loader->priv->auto_detected_compression_type = g_value_get_enum (value);
-                       break;
-
                case PROP_REMOVE_TRAILING_NEWLINE:
                        g_return_if_fail (loader->priv->task == NULL);
                        loader->priv->remove_trailing_newline = g_value_get_boolean (value);
@@ -182,14 +172,6 @@ gtk_source_file_loader_get_property (GObject    *object,
                        g_value_set_object (value, loader->priv->input_stream_property);
                        break;
 
-               case PROP_NEWLINE_TYPE:
-                       g_value_set_enum (value, loader->priv->auto_detected_newline_type);
-                       break;
-
-               case PROP_COMPRESSION_TYPE:
-                       g_value_set_enum (value, loader->priv->auto_detected_compression_type);
-                       break;
-
                case PROP_REMOVE_TRAILING_NEWLINE:
                        g_value_set_boolean (value, loader->priv->remove_trailing_newline);
                        break;
@@ -292,26 +274,6 @@ gtk_source_file_loader_class_init (GtkSourceFileLoaderClass *klass)
                                                              G_PARAM_CONSTRUCT_ONLY |
                                                              G_PARAM_STATIC_STRINGS));
 
-       g_object_class_install_property (object_class, PROP_NEWLINE_TYPE,
-                                        g_param_spec_enum ("newline-type",
-                                                           _("Newline type"),
-                                                           "The type of line ending",
-                                                           GTK_SOURCE_TYPE_NEWLINE_TYPE,
-                                                           GTK_SOURCE_NEWLINE_TYPE_LF,
-                                                           G_PARAM_READWRITE |
-                                                           G_PARAM_CONSTRUCT |
-                                                           G_PARAM_STATIC_STRINGS));
-
-       g_object_class_install_property (object_class, PROP_COMPRESSION_TYPE,
-                                        g_param_spec_enum ("compression-type",
-                                                           _("Compression type"),
-                                                           "The compression type",
-                                                           GTK_SOURCE_TYPE_COMPRESSION_TYPE,
-                                                           GTK_SOURCE_COMPRESSION_TYPE_NONE,
-                                                           G_PARAM_READWRITE |
-                                                           G_PARAM_CONSTRUCT |
-                                                           G_PARAM_STATIC_STRINGS));
-
        /**
         * GtkSourceFileLoader:remove-trailing-newline:
         *


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