summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu.vizoso@collabora.com>2012-02-19 15:33:48 +0100
committerTomeu Vizoso <tomeu.vizoso@collabora.com>2012-02-19 15:33:48 +0100
commit97d0f444bee30a7553e70e3add3236a119d00cf4 (patch)
tree626462bdbce7876ecef84103352c164931f539c2
parent14a438299675a5df7d931adf87b9d935ea8381bc (diff)
downloadgobject-introspection-97d0f444bee30a7553e70e3add3236a119d00cf4.tar.gz
g-ir-doc-tool: Remove some occurrences of empty Returns: lines
-rw-r--r--giscanner/mallard-Python-function.tmpl2
-rw-r--r--tests/doctool/GIRepository-2.0-Python-expected/GIRepository.BaseInfo.unref.page4
-rw-r--r--tests/doctool/GIRepository-2.0-Python-expected/GIRepository.Repository.prepend_search_path.page4
-rw-r--r--tests/doctool/GIRepository-2.0-Python-expected/GIRepository.arg_info_load_type.page4
-rw-r--r--tests/doctool/GIRepository-2.0-Python-expected/GIRepository.callable_info_load_arg.page4
-rw-r--r--tests/doctool/GIRepository-2.0-Python-expected/GIRepository.callable_info_load_return_type.page4
-rw-r--r--tests/doctool/GIRepository-2.0-Python-expected/GIRepository.constant_info_free_value.page4
7 files changed, 1 insertions, 25 deletions
diff --git a/giscanner/mallard-Python-function.tmpl b/giscanner/mallard-Python-function.tmpl
index c9bdf8f5..7aa25e8e 100644
--- a/giscanner/mallard-Python-function.tmpl
+++ b/giscanner/mallard-Python-function.tmpl
@@ -74,7 +74,7 @@ ${formatter.format(node.doc)}
<td>${formatter.format(arg.doc)}</td>
</tr>
% endfor
-% if node.retval:
+% if node.retval and node.retval.type.ctype != 'void':
<tr>
<td><p>Returns :</p></td>
<td>${formatter.format(node.retval.doc)}</td>
diff --git a/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.BaseInfo.unref.page b/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.BaseInfo.unref.page
index 2958993f..0c3e3c54 100644
--- a/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.BaseInfo.unref.page
+++ b/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.BaseInfo.unref.page
@@ -24,9 +24,5 @@ def unref()
drops to 0, the info is freed.</p>
<table>
-<tr>
-<td><p>Returns :</p></td>
-<td></td>
-</tr>
</table>
</page>
diff --git a/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.Repository.prepend_search_path.page b/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.Repository.prepend_search_path.page
index 8b124ad2..01614b16 100644
--- a/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.Repository.prepend_search_path.page
+++ b/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.Repository.prepend_search_path.page
@@ -32,9 +32,5 @@ def prepend_search_path(directory)
<td><p>directory :</p></td>
<td></td>
</tr>
-<tr>
-<td><p>Returns :</p></td>
-<td></td>
-</tr>
</table>
</page>
diff --git a/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.arg_info_load_type.page b/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.arg_info_load_type.page
index 45bbc45a..6bbf0123 100644
--- a/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.arg_info_load_type.page
+++ b/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.arg_info_load_type.page
@@ -42,9 +42,5 @@ allocation.</p><p>The initialized @type must not be referenced after @info is de
<td><p>type :</p></td>
<td><p>Initialized with information about type of @info</p></td>
</tr>
-<tr>
-<td><p>Returns :</p></td>
-<td></td>
-</tr>
</table>
</page>
diff --git a/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.callable_info_load_arg.page b/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.callable_info_load_arg.page
index bc4e7a76..c931c8f6 100644
--- a/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.callable_info_load_arg.page
+++ b/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.callable_info_load_arg.page
@@ -50,9 +50,5 @@ allocation.</p><p>The initialized @arg must not be referenced after @info is dea
<td><p>arg :</p></td>
<td><p>Initialize with argument number @n</p></td>
</tr>
-<tr>
-<td><p>Returns :</p></td>
-<td></td>
-</tr>
</table>
</page>
diff --git a/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.callable_info_load_return_type.page b/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.callable_info_load_return_type.page
index c936b2ea..b0dbed65 100644
--- a/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.callable_info_load_return_type.page
+++ b/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.callable_info_load_return_type.page
@@ -42,9 +42,5 @@ allocation.</p><p>The initialized @type must not be referenced after @info is de
<td><p>type :</p></td>
<td><p>Initialized with return type of @info</p></td>
</tr>
-<tr>
-<td><p>Returns :</p></td>
-<td></td>
-</tr>
</table>
</page>
diff --git a/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.constant_info_free_value.page b/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.constant_info_free_value.page
index d026791e..e5806efa 100644
--- a/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.constant_info_free_value.page
+++ b/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.constant_info_free_value.page
@@ -40,10 +40,6 @@ def constant_info_free_value(info, value)
<td><p>value :</p></td>
<td><p>the argument</p></td>
</tr>
-<tr>
-<td><p>Returns :</p></td>
-<td></td>
-</tr>
</table>
<p>Since 1.30.1</p>
</page>