[gobject-introspection] scanner: Turn dead code into assertion
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] scanner: Turn dead code into assertion
- Date: Fri, 6 Jul 2012 15:23:05 +0000 (UTC)
commit 09fe4ca9b3e816f87698761f4b66bc2d0c25e4e0
Author: Colin Walters <walters verbum org>
Date: Fri Jul 6 11:22:08 2012 -0400
scanner: Turn dead code into assertion
https://bugzilla.gnome.org/show_bug.cgi?id=656445
giscanner/transformer.py | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/giscanner/transformer.py b/giscanner/transformer.py
index 834fbac..cf284d8 100644
--- a/giscanner/transformer.py
+++ b/giscanner/transformer.py
@@ -420,8 +420,7 @@ raise ValueError."""
return func
def _create_source_type(self, source_type):
- if source_type is None:
- return 'None'
+ assert source_type is not None
if source_type.type == CTYPE_VOID:
value = 'void'
elif source_type.type == CTYPE_BASIC_TYPE:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]