Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/giscanner/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'giscanner/utils.py')
-rw-r--r--giscanner/utils.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/giscanner/utils.py b/giscanner/utils.py
index 021ffea..d2752e7 100644
--- a/giscanner/utils.py
+++ b/giscanner/utils.py
@@ -57,14 +57,3 @@ def extract_libtool(libname):
# and pre-2.2. Johan 2008-10-21
libname = libname.replace('.libs/.libs', '.libs')
return libname
-
-
-def strip_common_prefix(first, second):
- max_index = second.rfind('_')
- second_len = len(second)
- second = second.replace('_', '')
- max_index -= second_len - len(second) - 1
- for i, c in enumerate(first.upper()):
- if i >= len(second) or c != second[i] or i == max_index:
- return second[i:]
- return second[i + 1:]