mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
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:
parent
88f221c38e
commit
78f4434ef6
@ -551,12 +551,10 @@ start_function (GMarkupParseContext *context,
|
||||
const gchar *name;
|
||||
const gchar *symbol;
|
||||
const gchar *deprecated;
|
||||
const gchar *type;
|
||||
|
||||
name = find_attribute ("name", attribute_names, attribute_values);
|
||||
symbol = find_attribute ("c:identifier", attribute_names, attribute_values);
|
||||
deprecated = find_attribute ("deprecated", attribute_names, attribute_values);
|
||||
type = find_attribute ("type", attribute_names, attribute_values);
|
||||
|
||||
if (name == NULL)
|
||||
MISSING_ATTRIBUTE (context, error, element_name, "name");
|
||||
@ -581,11 +579,6 @@ start_function (GMarkupParseContext *context,
|
||||
{
|
||||
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)
|
||||
function->is_constructor = TRUE;
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user