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/valapropertyaccessor.vala | |
parent | 21fa2ed25337b21f7108a65f8942d27bd3335372 (diff) | |
download | vala-fec66bf087618263c57cdc34eb92aef6a79b86b6.tar.gz |
Drop C specific methods from the code tree
Diffstat (limited to 'vala/valapropertyaccessor.vala')
-rw-r--r-- | vala/valapropertyaccessor.vala | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/vala/valapropertyaccessor.vala b/vala/valapropertyaccessor.vala index dc4a8b3d3..47a197772 100644 --- a/vala/valapropertyaccessor.vala +++ b/vala/valapropertyaccessor.vala @@ -76,29 +76,7 @@ public class Vala.PropertyAccessor : Subroutine { */ public Parameter value_parameter { get; set; } - public virtual string get_default_cname () { - var t = (TypeSymbol) prop.parent_symbol; - - if (readable) { - return "%sget_%s".printf (t.get_lower_case_cprefix (), prop.name); - } else { - return "%sset_%s".printf (t.get_lower_case_cprefix (), prop.name); - } - } - - /** - * The publicly accessible name of the function that performs the - * access in C code. - */ - public string get_cname () { - if (_cname != null) { - return _cname; - } - return get_default_cname (); - } - private DataType _value_type; - private string? _cname; /** * Creates a new property accessor. @@ -136,19 +114,6 @@ public class Vala.PropertyAccessor : Subroutine { } } - /** - * Process all associated attributes. - */ - public void process_attributes () { - foreach (Attribute a in attributes) { - if (a.name == "CCode") { - if (a.has_argument ("cname")) { - _cname = a.get_string ("cname"); - } - } - } - } - public override bool check (CodeContext context) { if (checked) { return !error; @@ -156,8 +121,6 @@ public class Vala.PropertyAccessor : Subroutine { checked = true; - process_attributes (); - if (!value_type.check (context)) { error = true; return false; @@ -229,8 +192,4 @@ public class Vala.PropertyAccessor : Subroutine { value_type = new_type; } } - - public override List<string> get_cheader_filenames () { - return parent_symbol.get_cheader_filenames (); - } } |