[librsvg/rustification] Remove unused RsvgLoadPolicy



commit 4daa2de3caafb5f32985e9fd646f90b528847e16
Author: Federico Mena Quintero <federico gnome org>
Date:   Thu Nov 17 06:54:44 2016 -0600

    Remove unused RsvgLoadPolicy
    
    It was set to the single possible value at construction time,
    and then checked with an assertion for that value; it wasn't
    used for anything.

 rsvg-base.c    |    2 --
 rsvg-gobject.c |    1 -
 rsvg-private.h |    8 --------
 3 files changed, 0 insertions(+), 11 deletions(-)
---
diff --git a/rsvg-base.c b/rsvg-base.c
index 22b52f3..275b08e 100644
--- a/rsvg-base.c
+++ b/rsvg-base.c
@@ -2414,8 +2414,6 @@ _rsvg_handle_allow_load (RsvgHandle *handle,
     char *path, *dir;
     char *scheme = NULL, *cpath = NULL, *cdir = NULL;
 
-    g_assert (handle->priv->load_policy == RSVG_LOAD_POLICY_STRICT);
-
     scheme = g_uri_parse_scheme (uri);
 
     /* Not a valid URI */
diff --git a/rsvg-gobject.c b/rsvg-gobject.c
index c338724..94886fd 100644
--- a/rsvg-gobject.c
+++ b/rsvg-gobject.c
@@ -68,7 +68,6 @@ rsvg_handle_init (RsvgHandle * self)
     self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self, RSVG_TYPE_HANDLE, RsvgHandlePrivate);
 
     self->priv->flags = RSVG_HANDLE_FLAGS_NONE;
-    self->priv->load_policy = RSVG_LOAD_POLICY_DEFAULT;
     self->priv->all_nodes = g_ptr_array_new ();
     self->priv->defs = rsvg_defs_new (self);
     self->priv->handler_nest = 0;
diff --git a/rsvg-private.h b/rsvg-private.h
index c7dc94f..c750496 100644
--- a/rsvg-private.h
+++ b/rsvg-private.h
@@ -123,17 +123,9 @@ struct RsvgSaxHandler {
     void (*characters) (RsvgSaxHandler * self, const char *ch, int len);
 };
 
-typedef enum {
-    RSVG_LOAD_POLICY_STRICT
-} RsvgLoadPolicy;
-
-#define RSVG_LOAD_POLICY_DEFAULT (RSVG_LOAD_POLICY_STRICT)
-
 struct RsvgHandlePrivate {
     RsvgHandleFlags flags;
 
-    RsvgLoadPolicy load_policy;
-
     gboolean is_disposed;
     gboolean is_closed;
 


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