Mon, 24 Jun 2019 11:48:52 +0300
removed the typename methods
linetypes.py | file | annotate | diff | comparison | revisions |
--- a/linetypes.py Mon Jun 24 10:16:36 2019 +0300 +++ b/linetypes.py Mon Jun 24 11:48:52 2019 +0300 @@ -13,8 +13,6 @@ return 'linetypes.EmptyLine()' def textual_representation(self): return '' - def typename(self): - return 'empty line' class MetaCommand: def __init__(self, text, style = 'old'): @@ -25,8 +23,6 @@ ) def textual_representation(self): return ('0 ' + self.text).strip() - def typename(self): - return 'metacommand' class Comment: def __init__(self, text, style = 'old'): @@ -37,8 +33,6 @@ ) def textual_representation(self): return '0 //' + self.text - def typename(self): - return 'comment' class SubfileReference: def __init__(self, *, colour, subfile_path, anchor, matrix): @@ -59,8 +53,6 @@ self.subfile_path, ] return ' '.join(ldraw_str(arg) for arg in args) - def typename(self): - return 'subfile reference' class BasePolygon: def __init__(self, *, colour, geometry): @@ -82,20 +74,14 @@ class LineSegment(BasePolygon): def textual_representation(self): return '2 ' + self.base_textual_representation() - def typename(self): - return 'line segment' class Triangle(BasePolygon): def textual_representation(self): return '3 ' + self.base_textual_representation() - def typename(self): - return 'triangle' class Quadrilateral(BasePolygon): def textual_representation(self): return '4 ' + self.base_textual_representation() - def typename(self): - return 'quadrilateral' class ConditionalLine(LineSegment): def __init__(self, *, colour, geometry, control_points): @@ -114,8 +100,6 @@ result += ' ' result += ' '.join(strings) return result - def typename(self): - return 'contour line segment' class Error: def __init__(self, line, reason):