diff options
author | Colin Walters <walters@verbum.org> | 2008-08-21 18:03:21 +0000 |
---|---|---|
committer | Colin Walters <walters@src.gnome.org> | 2008-08-21 18:03:21 +0000 |
commit | 93b15cc8c6f59f3d653679367f2bf7c5a13d63d8 (patch) | |
tree | d9b8a1ef39a84caddea1943d9cf3841636a13104 /giscanner/utils.py | |
parent | c56ea941193491e5eb33c3510b4cc7ebce5129b3 (diff) | |
download | gobject-introspection-93b15cc8c6f59f3d653679367f2bf7c5a13d63d8.tar.gz |
Much simpler approach of mapping uscored names to classes. Remove
2008-08-21 Colin Walters <walters@verbum.org>
* giscanner/glibtransformer.py: Much simpler approach
of mapping uscored names to classes.
* giscanner/utils.py: Remove unnecessary function.
svn path=/trunk/; revision=443
Diffstat (limited to 'giscanner/utils.py')
-rw-r--r-- | giscanner/utils.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/giscanner/utils.py b/giscanner/utils.py index 2a8ce3b8..bd292f1e 100644 --- a/giscanner/utils.py +++ b/giscanner/utils.py @@ -37,23 +37,6 @@ def to_underscores(name): return name -def _gen_pascal_combinations(nameset): - firstname = [nameset[0].title(), nameset[0].upper()] - if len(nameset) == 1: - return firstname - else: - subset = _gen_pascal_combinations(nameset[1:]) - results = [] - for x in subset: - results.append(firstname[0] + x) - results.append(firstname[1] + x) - return results - - -def to_pascal_combinations(name): - return _gen_pascal_combinations(name.split('_')) - - _libtool_pat = re.compile("dlname='([A-z0-9\.\-\+]+)'\n") |