Remove duplicate namespace_prefix

This commit is contained in:
Thom Wiggers 2019-04-09 16:49:43 +02:00
parent 26ffedc86b
commit b2ef82e2da
No known key found for this signature in database
GPG Key ID: 001BB0A7CE26E363

View File

@ -70,7 +70,7 @@ class Implementation:
def __init__(self, scheme, name): def __init__(self, scheme, name):
self.scheme = scheme self.scheme = scheme
self.name = name self.name = name
def metadata(self): def metadata(self):
for i in self.scheme.metadata()['implementations']: for i in self.scheme.metadata()['implementations']:
if i['name'] == self.name: if i['name'] == self.name:
@ -79,9 +79,6 @@ class Implementation:
def path(self, base='..') -> str: def path(self, base='..') -> str:
return os.path.join(self.scheme.path(), self.name) return os.path.join(self.scheme.path(), self.name)
def namespace_prefix(self):
return 'PQCLEAN_{}_{}_'.format(self.scheme.name.upper(), self.name.upper()).replace('-', '')
def libname(self) -> str: def libname(self) -> str:
if os.name == 'nt': if os.name == 'nt':
return "lib{}_{}.lib".format(self.scheme.name, self.name) return "lib{}_{}.lib".format(self.scheme.name, self.name)