Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Kanakarakis <[email protected]>
  • Loading branch information
c00kiemon5ter committed Oct 3, 2018
1 parent 39db66b commit 1b90d8c
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/saml2/attribute_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,26 +89,6 @@ def ac_factory(path=""):
return acs


def ac_factory_II(path):
return ac_factory(path)


# def ava_fro(acs, statement):
# """ Translates attributes according to their name_formats into the local
# names.
#
# :param acs: AttributeConverter instances
# :param statement: A SAML statement
# :return: A dictionary with attribute names replaced with local names.
# """
# if not statement:
# return {}
#
# acsdic = dict([(ac.name_format, ac) for ac in acs])
# acsdic[None] = acsdic[NAME_FORMAT_URI]
# return dict([acsdic[a.name_format].ava_from(a) for a in statement])


def to_local(acs, statement, allow_unknown_attributes=False):
""" Replaces the attribute names in a attribute value assertion with the
equivalent name from a local name format.
Expand Down

0 comments on commit 1b90d8c

Please sign in to comment.