[meld] misc: Remove some dead code
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] misc: Remove some dead code
- Date: Sat, 18 Feb 2017 23:09:42 +0000 (UTC)
commit 9b7a80eec6a67f2257b21154f88a3399f98dd377
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sat Feb 11 06:35:25 2017 +1000
misc: Remove some dead code
meld/misc.py | 10 ----------
1 files changed, 0 insertions(+), 10 deletions(-)
---
diff --git a/meld/misc.py b/meld/misc.py
index 60ef8a2..ef329cb 100644
--- a/meld/misc.py
+++ b/meld/misc.py
@@ -228,10 +228,6 @@ def get_common_theme():
return fill_colours, line_colours
-def gdk_to_cairo_color(color):
- return (color.red / 65535., color.green / 65535., color.blue / 65535.)
-
-
def all_same(lst):
"""Return True if all elements of the list are equal"""
return not lst or lst.count(lst[0]) == len(lst)
@@ -386,12 +382,6 @@ def copytree(src, dst):
raise
-def shell_escape(glob_pat):
- # TODO: handle all cases
- assert not re.compile(r"[][*?]").findall(glob_pat)
- return glob_pat.replace('{', '[{]').replace('}', '[}]')
-
-
def shell_to_regex(pat):
"""Translate a shell PATTERN to a regular expression.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]