Remove left-over code, checking type of function.

2008-08-24  Johan Dahlin  <johan@gnome.org>

    * girepository/girparser.c (start_function):
    Remove left-over code, checking type of function.


svn path=/trunk/; revision=480
This commit is contained in:
Johan Dahlin 2008-08-24 10:43:02 +00:00 committed by Johan Dahlin
parent 88f221c38e
commit 78f4434ef6

View File

@ -551,12 +551,10 @@ start_function (GMarkupParseContext *context,
const gchar *name; const gchar *name;
const gchar *symbol; const gchar *symbol;
const gchar *deprecated; const gchar *deprecated;
const gchar *type;
name = find_attribute ("name", attribute_names, attribute_values); name = find_attribute ("name", attribute_names, attribute_values);
symbol = find_attribute ("c:identifier", attribute_names, attribute_values); symbol = find_attribute ("c:identifier", attribute_names, attribute_values);
deprecated = find_attribute ("deprecated", attribute_names, attribute_values); deprecated = find_attribute ("deprecated", attribute_names, attribute_values);
type = find_attribute ("type", attribute_names, attribute_values);
if (name == NULL) if (name == NULL)
MISSING_ATTRIBUTE (context, error, element_name, "name"); MISSING_ATTRIBUTE (context, error, element_name, "name");
@ -581,11 +579,6 @@ start_function (GMarkupParseContext *context,
{ {
function->is_method = TRUE; function->is_method = TRUE;
if (type && strcmp (type, "setter") == 0)
function->is_setter = TRUE;
else if (type && strcmp (type, "getter") == 0)
function->is_getter = TRUE;
if (strcmp (element_name, "constructor") == 0) if (strcmp (element_name, "constructor") == 0)
function->is_constructor = TRUE; function->is_constructor = TRUE;
else else