]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Drop experimental support for partial classes
authorJürg Billeter <j@bitron.ch>
Sun, 8 Feb 2009 22:04:55 +0000 (22:04 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Sun, 8 Feb 2009 22:04:55 +0000 (22:04 +0000)
2009-02-08  Jürg Billeter  <j@bitron.ch>

* vala/valanamespace.vala:

Drop experimental support for partial classes

svn path=/trunk/; revision=2423

ChangeLog
vala/valanamespace.vala

index bc548ff27eda0bf1d085673fe707a1409a50276f..52601084a064ca39d224e620599b9ec739525683 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-02-08  Jürg Billeter  <j@bitron.ch>
+
+       * vala/valanamespace.vala:
+
+       Drop experimental support for partial classes
+
 2009-02-04  Jürg Billeter  <j@bitron.ch>
 
        * vapi/posix.vapi:
index ac8623bb97fe2ae620827a1065203b1730a53604..a113381a57f2cccf92fb256af439261284800408 100644 (file)
@@ -124,30 +124,8 @@ public class Vala.Namespace : Symbol {
                        cl.access = SymbolAccessibility.INTERNAL;
                }
 
-               if (scope.lookup (cl.name) is Class) {
-                       // merge
-                       var old_class = (Class) scope.lookup (cl.name);
-                       foreach (DataType base_type in cl.get_base_types ()) {
-                               old_class.add_base_type (base_type);
-                       }
-                       foreach (Field f in cl.get_fields ()) {
-                               old_class.add_field (f);
-                       }
-                       foreach (Method m in cl.get_methods ()) {
-                               if (m == cl.default_construction_method && old_class.default_construction_method != null) {
-                                       // ignore secondary default creation method
-                                       continue;
-                               }
-                               old_class.add_method (m);
-                       }
-                       if (cl.constructor != null) {
-                               old_class.constructor = cl.constructor;
-                       }
-                       cl.source_reference.file.remove_node (cl);
-               } else {
-                       classes.add (cl);
-                       scope.add (cl.name, cl);
-               }
+               classes.add (cl);
+               scope.add (cl.name, cl);
        }
 
        /**