[valadoc] typereference: use unowned in favor of weak



commit 03db4653ebf182f29c6576db73545d2b6b171952
Author: Florian Brosch <flo brosch gmail com>
Date:   Tue Oct 27 12:56:21 2009 +0100

    typereference: use unowned in favor of weak

 src/libvaladoc/api/typereference.vala |   13 ++-----------
 1 files changed, 2 insertions(+), 11 deletions(-)
---
diff --git a/src/libvaladoc/api/typereference.vala b/src/libvaladoc/api/typereference.vala
index 2934362..3b6af65 100644
--- a/src/libvaladoc/api/typereference.vala
+++ b/src/libvaladoc/api/typereference.vala
@@ -82,17 +82,8 @@ public class Valadoc.Api.TypeReference : Item {
 		}
 	}
 
-	public bool is_unowned {
+	public bool is_weak {
 		get {
-			Vala.CodeNode parent = this.vtyperef.parent_node;
-
-			// parameter:
-			if (parent is Vala.FormalParameter) {
-				if (((Vala.FormalParameter)parent).direction == Vala.ParameterDirection.IN) {
-					return false;
-				}
-				return this.is_weak_helper ( ((Vala.FormalParameter)parent).parameter_type );
-			}
 			return false;
 		}
 	}
@@ -123,7 +114,7 @@ public class Valadoc.Api.TypeReference : Item {
 		}
 	}
 
-	public bool is_weak {
+	public bool is_unowned {
 		get {
 			Vala.CodeNode parent = this.vtyperef.parent_node;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]