[gnome-software] details: Remove duplicate copy-pasted code



commit be7cc65b420b1289e143b7bd1346ca8e9472e867
Author: Kalev Lember <kalevlember gmail com>
Date:   Mon Feb 24 19:52:15 2014 +0100

    details: Remove duplicate copy-pasted code
    
    https://bugzilla.gnome.org/show_bug.cgi?id=724669

 src/gs-shell-details.c |   11 -----------
 1 files changed, 0 insertions(+), 11 deletions(-)
---
diff --git a/src/gs-shell-details.c b/src/gs-shell-details.c
index 45314f1..9fe3d69 100644
--- a/src/gs-shell-details.c
+++ b/src/gs-shell-details.c
@@ -742,17 +742,6 @@ gs_shell_details_refresh_all (GsShellDetails *shell_details)
                break;
        }
 
-       /* an application */
-       widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "infobar_details_repo"));
-       switch (gs_app_get_kind (priv->app)) {
-       case GS_APP_KIND_SOURCE:
-               gtk_widget_set_visible (widget, gs_app_get_state (priv->app) == GS_APP_STATE_LOCAL);
-               break;
-       default:
-               gtk_widget_set_visible (widget, FALSE);
-               break;
-       }
-
        /* installing a app with a repo file */
        tmp = gs_app_get_metadata_item (priv->app, "PackageKit::has-source");
        widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "infobar_details_app_repo"));


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