[meld] misc: Remove unused function
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] misc: Remove unused function
- Date: Mon, 14 Oct 2013 21:10:51 +0000 (UTC)
commit f30d40beaeafa5497ba3fbc4382e228682f6fe38
Author: Kai Willadsen <kai willadsen gmail com>
Date: Tue Oct 8 06:22:03 2013 +1000
misc: Remove unused function
meld/misc.py | 11 -----------
1 files changed, 0 insertions(+), 11 deletions(-)
---
diff --git a/meld/misc.py b/meld/misc.py
index ae572d9..196a9e6 100644
--- a/meld/misc.py
+++ b/meld/misc.py
@@ -27,7 +27,6 @@ import shutil
import re
import subprocess
-from gi.repository import Gio
from gi.repository import GObject
from gi.repository import Gtk
@@ -91,16 +90,6 @@ def run_dialog( text, parent=None, messagetype=Gtk.MessageType.WARNING, buttonst
d.destroy()
return ret
-def open_uri(uri, timestamp=0):
- try:
- Gtk.show_uri(Gdk.Screen.get_default(), uri, timestamp)
- except Gio.Error:
- if uri.startswith("http://"):
- import webbrowser
- webbrowser.open_new_tab(uri)
- else:
- # Unhandled URI
- pass
# Taken from epiphany
def position_menu_under_widget(menu, widget):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]