diff options
author | Luca Bruno <lucabru@src.gnome.org> | 2011-07-06 09:56:18 +0200 |
---|---|---|
committer | Luca Bruno <lucabru@src.gnome.org> | 2011-08-01 19:09:01 +0200 |
commit | fec66bf087618263c57cdc34eb92aef6a79b86b6 (patch) | |
tree | 5b244b13f5f8708303ef0e63cb5b131a21998d18 /vala/valaerrorcode.vala | |
parent | 21fa2ed25337b21f7108a65f8942d27bd3335372 (diff) | |
download | vala-fec66bf087618263c57cdc34eb92aef6a79b86b6.tar.gz |
Drop C specific methods from the code tree
Diffstat (limited to 'vala/valaerrorcode.vala')
-rw-r--r-- | vala/valaerrorcode.vala | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/vala/valaerrorcode.vala b/vala/valaerrorcode.vala index eace48cce..aa97641c5 100644 --- a/vala/valaerrorcode.vala +++ b/vala/valaerrorcode.vala @@ -31,8 +31,6 @@ public class Vala.ErrorCode : TypeSymbol { */ public Expression value { get; set; } - private string cname; - /** * Creates a new enum value. * @@ -65,43 +63,6 @@ public class Vala.ErrorCode : TypeSymbol { } } - public override string get_cname (bool const_type = false) { - if (cname == null) { - cname = get_default_cname (); - } - return cname; - } - - public string get_default_cname () { - var edomain = (ErrorDomain) parent_symbol; - return "%s%s".printf (edomain.get_cprefix (), name); - } - - public void set_cname (string value) { - this.cname = value; - } - - public override string? get_lower_case_cname (string? infix) { - return get_cname ().down (); - } - - private void process_ccode_attribute (Attribute a) { - if (a.has_argument ("cname")) { - cname = a.get_string ("cname"); - } - } - - /** - * Process all associated attributes. - */ - public void process_attributes () { - foreach (Attribute a in attributes) { - if (a.name == "CCode") { - process_ccode_attribute (a); - } - } - } - public override bool check (CodeContext context) { if (checked) { return !error; @@ -109,8 +70,6 @@ public class Vala.ErrorCode : TypeSymbol { checked = true; - process_attributes (); - if (value != null) { value.check (context); } |