[yelp/carlosgc/webkit2-port: 8/8] yelp-view: Remove duplicated code



commit 9c3466691c6d6cd6676f911d56756408aa748c0e
Author: Carlos Garcia Campos <cgarcia igalia com>
Date:   Fri Apr 10 12:44:05 2015 +0200

    yelp-view: Remove duplicated code

 libyelp/yelp-view.c |   13 -------------
 1 files changed, 0 insertions(+), 13 deletions(-)
---
diff --git a/libyelp/yelp-view.c b/libyelp/yelp-view.c
index 2cf7c82..b6e8e3f 100644
--- a/libyelp/yelp-view.c
+++ b/libyelp/yelp-view.c
@@ -2178,19 +2178,6 @@ uri_resolved (YelpUri  *uri,
         g_free (struri);
     }
 
-    if (error == NULL) {
-        document  = yelp_document_get_for_uri (uri);
-        if (priv->document)
-            g_object_unref (priv->document);
-        priv->document = document;
-    }
-    else {
-        if (priv->document != NULL) {
-            g_object_unref (priv->document);
-            priv->document = NULL;
-        }
-    }
-
     if (!priv->back_load) {
         back = g_new0 (YelpBackEntry, 1);
         back->uri = g_object_ref (uri);


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