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.
parent 4d19ded9
......@@ -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 */
......
......@@ -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;
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment