[gnome-shell] messageTray: Clean up "TODO" code



commit 1496ba0bbda860d8d2fffd240d4791dd8e3888ef
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Tue Oct 16 12:20:39 2012 -0400

    messageTray: Clean up "TODO" code
    
    The code here says to remove it after the GNOME3 release. Better late
    than never.

 js/ui/messageTray.js |   11 +++--------
 1 files changed, 3 insertions(+), 8 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index cd5fd26..01d0387 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -141,14 +141,9 @@ const URLHighlighter = new Lang.Class({
                 let url = this._urls[urlId].url;
                 if (url.indexOf(':') == -1)
                     url = 'http://' + url;
-                try {
-                    Gio.app_info_launch_default_for_uri(url, global.create_app_launch_context());
-                    return true;
-                } catch (e) {
-                    // TODO: remove this after gnome 3 release
-                    Util.spawn(['gvfs-open', url]);
-                    return true;
-                }
+
+                Gio.app_info_launch_default_for_uri(url, global.create_app_launch_context());
+                return true;
             }
             return false;
         }));



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