diff options
author | Dieter Verfaillie <dieterv@optionexplicit.be> | 2013-07-31 07:43:11 +0200 |
---|---|---|
committer | Dieter Verfaillie <dieterv@optionexplicit.be> | 2013-10-08 20:55:33 +0200 |
commit | a42b38d54ff3539fd8e1f312c815744856a5c0b5 (patch) | |
tree | 0871170e064f23c7dac7828c58a1a3601f9e0823 /giscanner/annotationparser.py | |
parent | bc80bc3f33ceab637caf8ee13cae2d83876f49a4 (diff) | |
download | gobject-introspection-a42b38d54ff3539fd8e1f312c815744856a5c0b5.tar.gz |
giscanner: remove unused backrefs
Diffstat (limited to 'giscanner/annotationparser.py')
-rw-r--r-- | giscanner/annotationparser.py | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/giscanner/annotationparser.py b/giscanner/annotationparser.py index d61c2d6d..a6a6a945 100644 --- a/giscanner/annotationparser.py +++ b/giscanner/annotationparser.py @@ -462,10 +462,9 @@ MULTILINE_ANNOTATION_CONTINUATION_RE = re.compile( class DocOption(object): - __slots__ = ('tag', '_array', '_dict') + __slots__ = ('_array', '_dict') - def __init__(self, tag, option): - self.tag = tag + def __init__(self, option): self._array = [] self._dict = OrderedDict() # (annotation option1=value1 option2=value2) etc @@ -541,10 +540,9 @@ class GtkDocAnnotations(object): class GtkDocTag(object): - __slots__ = ('block', 'name', 'annotations', 'description', 'value', 'position') + __slots__ = ('name', 'annotations', 'description', 'value', 'position') - def __init__(self, block, name): - self.block = block + def __init__(self, name): self.name = name self.annotations = GtkDocAnnotations() self.description = None @@ -1098,7 +1096,7 @@ class GtkDocCommentBlockParser(object): (param_name, comment_block.name, original_line, marker), position) - tag = GtkDocTag(comment_block, param_name) + tag = GtkDocTag(param_name) tag.position = position tag.description = param_description if param_annotations: @@ -1170,7 +1168,7 @@ class GtkDocCommentBlockParser(object): "'%s'." % (comment_block.name, ), position) - tag = GtkDocTag(comment_block, TAG_RETURNS) + tag = GtkDocTag(TAG_RETURNS) tag.position = position tag.description = tag_description if tag_annotations: @@ -1186,7 +1184,7 @@ class GtkDocCommentBlockParser(object): (tag_name, comment_block.name, original_line, marker), position) - tag = GtkDocTag(comment_block, tag_name.lower()) + tag = GtkDocTag(tag_name.lower()) tag.position = position tag.value = tag_description if tag_annotations: @@ -1301,7 +1299,7 @@ class GtkDocCommentBlockParser(object): else: raise AssertionError if option is not None: - option = DocOption(tag, option) + option = DocOption(option) annotations.add(name, option) opened = -1 |