[gobject-introspection] giscanner: remove unused GtkDocCommentBlock.value
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] giscanner: remove unused GtkDocCommentBlock.value
- Date: Wed, 9 Oct 2013 16:57:54 +0000 (UTC)
commit 5469415be4c237d7ea0125d214b7e73c441954f2
Author: Dieter Verfaillie <dieterv optionexplicit be>
Date: Mon Jun 17 17:05:11 2013 +0200
giscanner: remove unused GtkDocCommentBlock.value
giscanner/annotationparser.py | 3 +--
tests/scanner/annotationparser/test_parser.py | 4 ++--
2 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/giscanner/annotationparser.py b/giscanner/annotationparser.py
index a6a6a94..b8953ed 100644
--- a/giscanner/annotationparser.py
+++ b/giscanner/annotationparser.py
@@ -722,7 +722,7 @@ class GtkDocCommentBlock(object):
Represents a GTK-Doc comment block.
'''
- __slots__ = ('name', 'annotations', 'value', 'tags', 'description', 'params', 'position')
+ __slots__ = ('name', 'annotations', 'tags', 'description', 'params', 'position')
def __init__(self, name):
#: Identifier name.
@@ -740,7 +740,6 @@ class GtkDocCommentBlock(object):
self.tags = OrderedDict()
self.annotations = GtkDocAnnotations()
- self.value = None
self.position = None
def __cmp__(self, other):
diff --git a/tests/scanner/annotationparser/test_parser.py b/tests/scanner/annotationparser/test_parser.py
index 7141c7a..c88cc26 100644
--- a/tests/scanner/annotationparser/test_parser.py
+++ b/tests/scanner/annotationparser/test_parser.py
@@ -177,8 +177,8 @@ class TestCommentBlock(unittest.TestCase):
parsed += ' </parameter>\n'
parsed += ' </parameters>\n'
- if docblock.description or docblock.value:
- parsed += ' <description>%s</description>\n' % (docblock.description or docblock.value, )
+ if docblock.description:
+ parsed += ' <description>%s</description>\n' % (docblock.description, )
if docblock.tags:
parsed += ' <tags>\n'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]