Eolian: cleanup
This commit is contained in:
parent
7a0f756ba8
commit
7222158dfd
|
@ -9,9 +9,6 @@ from collections import Counter
|
|||
|
||||
from argparse import ArgumentParser
|
||||
parser = ArgumentParser(description="Python generator for eolian")
|
||||
# parser.add_argument(
|
||||
# '--header-file', required=True,
|
||||
# help="Filename of the library header")
|
||||
parser.add_argument('-v', '--verbose', action="count")
|
||||
parser.add_argument('-o', '--output', default="/tmp", help="max is -vvv")
|
||||
parser.add_argument('paths', nargs="+")
|
||||
|
@ -235,7 +232,6 @@ class Method(object):
|
|||
def parse(cls, func, eo_prefix, legacy_prefix):
|
||||
self = cls.__new__(cls)
|
||||
self.__init__(eo_prefix, legacy_prefix)
|
||||
#self.func = func
|
||||
|
||||
self.py_name = func.name
|
||||
if keyword.iskeyword(self.py_name):
|
||||
|
@ -425,7 +421,6 @@ class Property(object):
|
|||
def parse(cls, func, eo_prefix, legacy_prefix):
|
||||
self = cls.__new__(cls)
|
||||
self.__init__(eo_prefix, legacy_prefix)
|
||||
#self.func = func
|
||||
|
||||
self.py_name = func.name
|
||||
if keyword.iskeyword(self.py_name):
|
||||
|
@ -643,7 +638,6 @@ class Class(object):
|
|||
def parse(klass, cls):
|
||||
self = klass.__new__(klass)
|
||||
self.__init__()
|
||||
#self.cls = cls
|
||||
|
||||
class_counter[cls.name] += 1
|
||||
|
||||
|
@ -727,14 +721,6 @@ class Class(object):
|
|||
log.debug(format_exc())
|
||||
continue
|
||||
else:
|
||||
# try:
|
||||
# o = LegacyConstructor.parse(ctor, prefix)
|
||||
# except Exception as e:
|
||||
# log.warn(e)
|
||||
# log.debug(
|
||||
# "Skipping %s.%s because of an exception"
|
||||
# % (cls.name, ctor.name))
|
||||
# continue
|
||||
log.error("legacy custom constructors not supported")
|
||||
continue
|
||||
self.ctors.append(o)
|
||||
|
|
Loading…
Reference in New Issue