python: remove redundant is_string_type
commit608e8f59d2ee70418f2e5eca96b7e0df92ed5989
authorTobias Grosser <tobias@grosser.es>
Fri, 6 Jan 2017 14:26:30 +0000 (6 15:26 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Fri, 6 Jan 2017 14:56:14 +0000 (6 15:56 +0100)
tree5ce91b687698c77ba3fb520e864a39442641bb58
parent808cbfc9ac33d6d37d614c89fbdfe05ce1cc110b
python: remove redundant is_string_type

In commit 72f7994 (python interface: support 'char *' and 'const *'
return types, Thu Jun 30 16:22:34 2016), the is_string_type() method was
added accidentally despite is_string() already providing the very
functionality.  Even worse, is_string_type() has a bug where a "char"
interpreted as boolean true and it also contains a seemingly unnecessary
call to isFunctionType().  Remove the redundant function definition and
switch the two users to is_string().

This change does not change the output of isl.py.

Reported-by: Sven Verdoolaege <skimo@kotnet.org>
Signed-off-by: Tobias Grosser <tobias@grosser.es>
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
interface/python.cc