commit:     ad9014433b09ada7826ae7a7e7c5a999121c000f
Author:     Pavlos Ratis <dastergon <AT> gentoo <DOT> org>
AuthorDate: Mon May 19 14:50:42 2014 +0000
Commit:     Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
CommitDate: Tue May 20 12:27:15 2014 +0000
URL:        
http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-keys.git;a=commit;h=ad901443

remove unused build_gkeydict function from gkeyldap

---
 gkeyldap/actions.py | 27 ---------------------------
 1 file changed, 27 deletions(-)

diff --git a/gkeyldap/actions.py b/gkeyldap/actions.py
index 5b33600..27b35bf 100644
--- a/gkeyldap/actions.py
+++ b/gkeyldap/actions.py
@@ -149,33 +149,6 @@ class Actions(object):
         return (x, target, search_field)
 
 
-
-    def build_gkeydict(self, info):
-        keyinfo = {}
-        for x in GKEY._fields:
-            field = gkey2ldap_map[x]
-            if not field:
-                continue
-            try:
-                # strip errant line feeds
-                values = [y.strip('\n') for y in info[field]]
-                if values and values in ['uid', 'cn' ]:
-                    value = values[0]
-                # separate out short/long key id's
-                elif values and x in ['keyid', 'longkeyid']:
-                    value = get_key_ids(x, values)
-                else:
-                    value = values
-                if 'undefined' in values:
-                    self.logger.error('%s = "undefined" for %s, %s'
-                        %(field, info['uid'][0], info['cn'][0]))
-                if value:
-                    keyinfo[x] = value
-            except KeyError:
-                pass
-        return keyinfo
-
-
     def build_gkeylist(self, info):
         keyinfo = []
         keyid_found = False

Reply via email to