[valadoc] libvaladoc/api rm uncalled creation method visitor



commit ab51124b0362e61962bccc979b867add1ccdcbd1
Author: Florian Brosch <flo brosch gmail com>
Date:   Sat May 22 13:47:38 2010 +0200

    libvaladoc/api rm uncalled creation method visitor

 src/doclets/gtkdoc/generator.vala         |    4 ----
 src/libvaladoc/api/visitor.vala           |    3 ---
 src/libvaladoc/html/cssclassresolver.vala |    6 ++----
 3 files changed, 2 insertions(+), 11 deletions(-)
---
diff --git a/src/doclets/gtkdoc/generator.vala b/src/doclets/gtkdoc/generator.vala
index f0f4189..f347886 100644
--- a/src/doclets/gtkdoc/generator.vala
+++ b/src/doclets/gtkdoc/generator.vala
@@ -462,10 +462,6 @@ public class Gtkdoc.Generator : Api.Visitor {
 		current_dbus_member = old_dbus_member;
 	}
 
-	public override void visit_creation_method (Api.Method m) {
-		// never called
-	}
-
 	public override void visit_method (Api.Method m) {
 		if ((m.is_constructor && current_class.is_abstract) || m.is_override || m.is_private || (!m.is_abstract && !m.is_virtual && m.base_method != null)) {
 			return;
diff --git a/src/libvaladoc/api/visitor.vala b/src/libvaladoc/api/visitor.vala
index 3745738..07cdc8b 100755
--- a/src/libvaladoc/api/visitor.vala
+++ b/src/libvaladoc/api/visitor.vala
@@ -54,9 +54,6 @@ public abstract class Valadoc.Api.Visitor : GLib.Object {
 	public virtual void visit_signal (Signal item) {
 	}
 
-	public virtual void visit_creation_method (Method item) {
-	}
-
 	public virtual void visit_method (Method item) {
 	}
 
diff --git a/src/libvaladoc/html/cssclassresolver.vala b/src/libvaladoc/html/cssclassresolver.vala
index 78a52a2..35445ba 100755
--- a/src/libvaladoc/html/cssclassresolver.vala
+++ b/src/libvaladoc/html/cssclassresolver.vala
@@ -93,10 +93,6 @@ namespace Valadoc.Html {
 			css_class = "signal";
 		}
 
-		public override void visit_creation_method (Api.Method item) {
-			css_class = "creation_method";
-		}
-
 		public override void visit_method (Api.Method item) {
 			if (item.is_static) {
 				css_class = "static_method";
@@ -104,6 +100,8 @@ namespace Valadoc.Html {
 				css_class = "abstract_method";
 			} else if (item.is_virtual || item.is_override) {
 				css_class = "virtual_method";
+			} else if (item.is_constructor) {
+				css_class = "creation_method";
 			} else {
 				css_class = "method";
 			}



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