From aa66cd5f35bc0d5e857d9bb4d6b294ee582bfd22 Mon Sep 17 00:00:00 2001 From: Jan Cholasta Date: Tue, 10 Dec 2013 11:48:23 +0100 Subject: Remove unused LDAPClient methods get_syntax and get_single_value. https://fedorahosted.org/freeipa/ticket/3488 --- ipapython/ipaldap.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/ipapython/ipaldap.py b/ipapython/ipaldap.py index c553feac..2440d75f 100644 --- a/ipapython/ipaldap.py +++ b/ipapython/ipaldap.py @@ -1231,15 +1231,6 @@ class LDAPClient(object): """schema associated with this LDAP server""" return self.conn.schema - def get_syntax(self, attr, value): - if self.schema is None: - return None - obj = self.schema.get_obj(ldap.schema.AttributeType, attr) - if obj is not None: - return obj.syntax - else: - return None - def has_dn_syntax(self, attr): return self.conn.has_dn_syntax(attr) @@ -1256,9 +1247,6 @@ class LDAPClient(object): reason=_('objectclass %s not found') % oc) return [unicode(a).lower() for a in list(set(allowed_attributes))] - def get_single_value(self, attr): - return self.conn.get_single_value(attr) - def make_dn_from_attr(self, attr, value, parent_dn=None): """ Make distinguished name from attribute. -- cgit