[gnome-boxes] list-view: Remove redundant code to set info label



commit 4b0cbda886f86b57c580b606538726b2e57ec512
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Tue Aug 25 14:22:08 2015 +0100

    list-view: Remove redundant code to set info label
    
    'info' property is already set to server part (the important bit) of URL
    of the RemoteMachine so we don't need custom handling for RemoteMachine.

 src/list-view-row.vala |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/src/list-view-row.vala b/src/list-view-row.vala
index 29ec7bb..34432d9 100644
--- a/src/list-view-row.vala
+++ b/src/list-view-row.vala
@@ -109,13 +109,6 @@ private class Boxes.ListViewRow: Gtk.Box {
     }
 
     private void update_info () {
-        if (machine is RemoteMachine) {
-            var remote_machine = machine as RemoteMachine;
-            info_label.label = remote_machine.source.uri;
-
-            return;
-        }
-
         info_label.label = machine.info;
     }
 


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