Skip to content

Commit 1b90d8c

Browse files
committed
Remove unused code
Signed-off-by: Ivan Kanakarakis <[email protected]>
1 parent 39db66b commit 1b90d8c

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

src/saml2/attribute_converter.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -89,26 +89,6 @@ def ac_factory(path=""):
8989
return acs
9090

9191

92-
def ac_factory_II(path):
93-
return ac_factory(path)
94-
95-
96-
# def ava_fro(acs, statement):
97-
# """ Translates attributes according to their name_formats into the local
98-
# names.
99-
#
100-
# :param acs: AttributeConverter instances
101-
# :param statement: A SAML statement
102-
# :return: A dictionary with attribute names replaced with local names.
103-
# """
104-
# if not statement:
105-
# return {}
106-
#
107-
# acsdic = dict([(ac.name_format, ac) for ac in acs])
108-
# acsdic[None] = acsdic[NAME_FORMAT_URI]
109-
# return dict([acsdic[a.name_format].ava_from(a) for a in statement])
110-
111-
11292
def to_local(acs, statement, allow_unknown_attributes=False):
11393
""" Replaces the attribute names in a attribute value assertion with the
11494
equivalent name from a local name format.

0 commit comments

Comments
 (0)