[vala] Remove visit_member



commit 1bfc182cc9633df7190aa490f941d3254bcdee92
Author: Jürg Billeter <j bitron ch>
Date:   Sun Jul 25 10:45:43 2010 +0200

    Remove visit_member

 codegen/valaccodebasemodule.vala |    4 ++++
 codegen/valaccodegenerator.vala  |    4 ----
 codegen/valadovabasemodule.vala  |    3 ---
 vala/valacodevisitor.vala        |   10 +---------
 vala/valaconstant.vala           |    2 --
 vala/valafield.vala              |    2 --
 vala/valamember.vala             |    4 ----
 vala/valaproperty.vala           |    2 --
 vala/valasignal.vala             |    2 --
 9 files changed, 5 insertions(+), 28 deletions(-)
---
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index b54ff41..05f8e93 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -901,6 +901,8 @@ public class Vala.CCodeBaseModule : CCodeModule {
 	}
 
 	public override void visit_field (Field f) {
+		visit_member (f);
+
 		check_type (f.field_type);
 
 		f.accept_children (codegen);
@@ -1207,6 +1209,8 @@ public class Vala.CCodeBaseModule : CCodeModule {
 	}
 
 	public override void visit_property (Property prop) {
+		visit_member (prop);
+
 		check_type (prop.property_type);
 
 		int old_next_temp_var_id = next_temp_var_id;
diff --git a/codegen/valaccodegenerator.vala b/codegen/valaccodegenerator.vala
index d621f04..60df3c8 100644
--- a/codegen/valaccodegenerator.vala
+++ b/codegen/valaccodegenerator.vala
@@ -131,10 +131,6 @@ public class Vala.CCodeGenerator : CodeGenerator {
 		head.visit_delegate (d);
 	}
 	
-	public override void visit_member (Member m) {
-		head.visit_member (m);
-	}
-
 	public override void visit_constant (Constant c) {
 		head.visit_constant (c);
 	}
diff --git a/codegen/valadovabasemodule.vala b/codegen/valadovabasemodule.vala
index 99dd576..9f90255 100644
--- a/codegen/valadovabasemodule.vala
+++ b/codegen/valadovabasemodule.vala
@@ -393,9 +393,6 @@ internal class Vala.DovaBaseModule : CCodeModule {
 		}
 	}
 
-	public override void visit_member (Member m) {
-	}
-
 	public void generate_constant_declaration (Constant c, CCodeDeclarationSpace decl_space) {
 		if (decl_space.add_symbol_declaration (c, c.get_cname ())) {
 			return;
diff --git a/vala/valacodevisitor.vala b/vala/valacodevisitor.vala
index 5f6a0c8..7cfd46b 100644
--- a/vala/valacodevisitor.vala
+++ b/vala/valacodevisitor.vala
@@ -1,6 +1,6 @@
 /* valacodevisitor.vala
  *
- * Copyright (C) 2006-2009  Jürg Billeter
+ * Copyright (C) 2006-2010  Jürg Billeter
  * Copyright (C) 2006-2008  Raffaele Sandrini
  *
  * This library is free software; you can redistribute it and/or
@@ -107,14 +107,6 @@ public abstract class Vala.CodeVisitor {
 	 */
 	public virtual void visit_delegate (Delegate d) {
 	}
-	
-	/**
-	 * Visit operation called for members.
-	 *
-	 * @param m a member
-	 */
-	public virtual void visit_member (Member m) {
-	}
 
 	/**
 	 * Visit operation called for constants.
diff --git a/vala/valaconstant.vala b/vala/valaconstant.vala
index b9d29a2..e889e40 100644
--- a/vala/valaconstant.vala
+++ b/vala/valaconstant.vala
@@ -74,8 +74,6 @@ public class Vala.Constant : Member, Lockable {
 	}
 
 	public override void accept (CodeVisitor visitor) {
-		visitor.visit_member (this);
-
 		visitor.visit_constant (this);
 	}
 
diff --git a/vala/valafield.vala b/vala/valafield.vala
index ed7e091..82e48f1 100644
--- a/vala/valafield.vala
+++ b/vala/valafield.vala
@@ -126,8 +126,6 @@ public class Vala.Field : Member, Lockable {
 	}
 
 	public override void accept (CodeVisitor visitor) {
-		visitor.visit_member (this);
-		
 		visitor.visit_field (this);
 	}
 
diff --git a/vala/valamember.vala b/vala/valamember.vala
index 1c25c36..1d2a259 100644
--- a/vala/valamember.vala
+++ b/vala/valamember.vala
@@ -41,10 +41,6 @@ public abstract class Vala.Member : Symbol {
 		this.comment = comment;
 	}
 
-	public override void accept (CodeVisitor visitor) {
-		visitor.visit_member (this);
-	}
-
 	public override List<string> get_cheader_filenames () {
 		if (cheader_filenames.size == 0 && parent_symbol != null) {
 			/* default to header filenames of the namespace */
diff --git a/vala/valaproperty.vala b/vala/valaproperty.vala
index d55b687..3cb8afa 100644
--- a/vala/valaproperty.vala
+++ b/vala/valaproperty.vala
@@ -207,8 +207,6 @@ public class Vala.Property : Member, Lockable {
 	}
 
 	public override void accept (CodeVisitor visitor) {
-		visitor.visit_member (this);
-
 		visitor.visit_property (this);
 	}
 
diff --git a/vala/valasignal.vala b/vala/valasignal.vala
index 89bca45..443f4b4 100644
--- a/vala/valasignal.vala
+++ b/vala/valasignal.vala
@@ -196,8 +196,6 @@ public class Vala.Signal : Member, Lockable {
 	}
 
 	public override void accept (CodeVisitor visitor) {
-		visitor.visit_member (this);
-		
 		visitor.visit_signal (this);
 	}
 



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