[vala/wip/attributes: 69/121] Drop Class ref_sink function
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/attributes: 69/121] Drop Class ref_sink function
- Date: Mon, 4 Jul 2011 17:14:34 +0000 (UTC)
commit 53eb7482f47f67caa40184250d0e29d609d152db
Author: Luca Bruno <lucabru src gnome org>
Date: Wed Jun 29 21:27:33 2011 +0200
Drop Class ref_sink function
vala/valaclass.vala | 16 ----------------
vala/valatypesymbol.vala | 18 ------------------
2 files changed, 0 insertions(+), 34 deletions(-)
---
diff --git a/vala/valaclass.vala b/vala/valaclass.vala
index 722256c..b4e96a6 100644
--- a/vala/valaclass.vala
+++ b/vala/valaclass.vala
@@ -84,7 +84,6 @@ public class Vala.Class : ObjectTypeSymbol {
private string lower_case_cprefix;
private string lower_case_csuffix;
private string type_id;
- private string ref_sink_function;
private bool _is_compact;
private bool _is_immutable;
@@ -631,9 +630,6 @@ public class Vala.Class : ObjectTypeSymbol {
}
private void process_ccode_attribute (Attribute a) {
- if (a.has_argument ("ref_sink_function")) {
- set_ref_sink_function (a.get_string ("ref_sink_function"));
- }
if (a.has_argument ("type_id")) {
type_id = a.get_string ("type_id");
}
@@ -698,18 +694,6 @@ public class Vala.Class : ObjectTypeSymbol {
return false;
}
- public override string? get_ref_sink_function () {
- if (ref_sink_function == null && base_class != null) {
- return base_class.get_ref_sink_function ();
- } else {
- return ref_sink_function;
- }
- }
-
- public void set_ref_sink_function (string? name) {
- this.ref_sink_function = name;
- }
-
public override bool is_subtype_of (TypeSymbol t) {
if (this == t) {
return true;
diff --git a/vala/valatypesymbol.vala b/vala/valatypesymbol.vala
index e10701e..29d58d9 100644
--- a/vala/valatypesymbol.vala
+++ b/vala/valatypesymbol.vala
@@ -62,24 +62,6 @@ public abstract class Vala.TypeSymbol : Symbol {
}
/**
- * Returns the C function name that sinks the reference count of
- * "floating" instances of this data type. This is only valid for data
- * types supporting floating references. The specified C function must
- * accept one argument referencing the instance of this data type and
- * return a non-floating reference.
- *
- * The ref_sink function is called for any constructor of the class and
- * for other methods that have the class as a return value and are
- * marked with the 'floating' attribute.
- *
- * @return the name of the C function or null if this data type does not
- * support floating reference counts
- */
- public virtual string? get_ref_sink_function () {
- return null;
- }
-
- /**
* Returns the C symbol representing the runtime type id for this data
* type. The specified symbol must express a registered GType.
*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]