]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Drop Symbol.process_deprecated_attribute
authorLuca Bruno <lucabru@src.gnome.org>
Thu, 7 Jul 2011 13:51:51 +0000 (15:51 +0200)
committerLuca Bruno <lucabru@src.gnome.org>
Mon, 1 Aug 2011 16:17:05 +0000 (18:17 +0200)
12 files changed:
vala/valaclass.vala
vala/valaconstant.vala
vala/valadelegate.vala
vala/valaenum.vala
vala/valaerrordomain.vala
vala/valafield.vala
vala/valainterface.vala
vala/valamethod.vala
vala/valaproperty.vala
vala/valasignal.vala
vala/valastruct.vala
vala/valasymbol.vala

index be1862a0cac45416d94091bc2188d75790c0e99c..000f9ad79d061e13db377417d278ee5159f4dd37 100644 (file)
@@ -753,8 +753,6 @@ public class Vala.Class : ObjectTypeSymbol {
                foreach (Attribute a in attributes) {
                        if (a.name == "CCode") {
                                process_ccode_attribute (a);
-                       } else if (a.name == "Deprecated") {
-                               process_deprecated_attribute (a);
                        } else if (a.name == "GIR") {
                                process_gir_attribute (a);
                        } else if (a.name == "Experimental") {
index 0c77d07bce2e467791b338b8199784035fc62821..e0c7d210b5a02997f0690f5b1f53885ac450ca98 100644 (file)
@@ -157,8 +157,6 @@ public class Vala.Constant : Symbol, Lockable {
                foreach (Attribute a in attributes) {
                        if (a.name == "CCode") {
                                process_ccode_attribute (a);
-                       } else if (a.name == "Deprecated") {
-                               process_deprecated_attribute (a);
                        } else if (a.name == "Experimental") {
                                process_experimental_attribute (a);
                        }
index 6d22fbae099ff17e049b3f335ae92978b2786040..9e5326760f1ba222d2608ecfc94aa5d7c3f507a5 100644 (file)
@@ -332,8 +332,6 @@ public class Vala.Delegate : TypeSymbol {
                foreach (Attribute a in attributes) {
                        if (a.name == "CCode") {
                                process_ccode_attribute (a);
-                       } else if (a.name == "Deprecated") {
-                               process_deprecated_attribute (a);
                        } else if (a.name == "Experimental") {
                                process_experimental_attribute (a);
                        }
index fed3286fe4dea24c069e7121b851daf593daac99..28d3151f8857ad2238ab672a8a5ebbd1b66573c0 100644 (file)
@@ -255,8 +255,6 @@ public class Vala.Enum : TypeSymbol {
                                process_ccode_attribute (a);
                        } else if (a.name == "Flags") {
                                is_flags = true;
-                       } else if (a.name == "Deprecated") {
-                               process_deprecated_attribute (a);
                        }
                }
        }
index 40dd9b1ff89d052fc4a63c8d02f085d0a891c7cd..92bcf7d59bf21dee7b374f18d3cd3fc5b258a5ed 100644 (file)
@@ -195,8 +195,6 @@ public class Vala.ErrorDomain : TypeSymbol {
                foreach (Attribute a in attributes) {
                        if (a.name == "CCode") {
                                process_ccode_attribute (a);
-                       } else if (a.name == "Deprecated") {
-                               process_deprecated_attribute (a);
                        } else if (a.name == "Experimental") {
                                process_experimental_attribute (a);
                        }
index 4d260d1ed29fb6f3e8bf23054baec8c984947daf..31c05c1bd2335fe7f74506f13e62930bf7ef376a 100644 (file)
@@ -122,8 +122,6 @@ public class Vala.Field : Variable, Lockable {
                foreach (Attribute a in attributes) {
                        if (a.name == "CCode") {
                                process_ccode_attribute (a);
-                       } else if (a.name == "Deprecated") {
-                               process_deprecated_attribute (a);
                        } else if (a.name == "Experimental") {
                                process_experimental_attribute (a);
                        }
index d189323e2c2f9013ef748a28ab044f57dad0b32f..edbd120a77ccf23fd56532a0cc765594bb6940fc 100644 (file)
@@ -491,8 +491,6 @@ public class Vala.Interface : ObjectTypeSymbol {
                foreach (Attribute a in attributes) {
                        if (a.name == "CCode") {
                                process_ccode_attribute (a);
-                       } else if (a.name == "Deprecated") {
-                               process_deprecated_attribute (a);
                        } else if (a.name == "Experimental") {
                                process_experimental_attribute (a);
                        }
index d1215ab94bb374c0a582d2b0e9386bef918928c0..a907105050e3bf8c9ba74e282acdfe8c6b7ef492 100644 (file)
@@ -499,8 +499,6 @@ public class Vala.Method : Subroutine {
                        } else if (a.name == "NoArrayLength") {
                                Report.warning (source_reference, "NoArrayLength attribute is deprecated, use [CCode (array_length = false)] instead.");
                                no_array_length = true;
-                       } else if (a.name == "Deprecated") {
-                               process_deprecated_attribute (a);
                        } else if (a.name == "NoThrow") {
                                get_error_types ().clear ();
                        } else if (a.name == "Experimental") {
index 467cdf84efbb1476718fd076f934debbdebaad2e..ea24086cce8a110b015a5e63a4c39a2131c55318 100644 (file)
@@ -292,8 +292,6 @@ public class Vala.Property : Symbol, Lockable {
                                if (a.has_argument ("blurb")) {
                                        blurb = a.get_string ("blurb");
                                }
-                       } else if (a.name == "Deprecated") {
-                               process_deprecated_attribute (a);
                        }                       
                }
        }
index ee0667e1ae74e04cdf68f6d0f34351bfcf7498ee..9b27d3d14a236ad400759075cd7b289195250605 100644 (file)
@@ -268,8 +268,6 @@ public class Vala.Signal : Symbol, Lockable {
                                has_emitter = true;
                        } else if (a.name == "Signal") {
                                process_signal_attribute (a);
-                       } else if (a.name == "Deprecated") {
-                               process_deprecated_attribute (a);
                        } else if (a.name == "Experimental") {
                                process_experimental_attribute (a);
                        }
index ea0ccf73cfc7672a443c981d1b54300c78e3898a..ed8d9922302cb040451b9312fece47b6d2758a24 100644 (file)
@@ -530,8 +530,6 @@ public class Vala.Struct : TypeSymbol {
                foreach (Attribute a in attributes) {
                        if (a.name == "CCode") {
                                process_ccode_attribute (a);
-                       } else if (a.name == "Deprecated") {
-                               process_deprecated_attribute (a);
                        } else if (a.name == "GIR") {
                                process_gir_attribute (a);
                        } else if (a.name == "Experimental") {
index 6368a05f737f7092ec39c8a0d68f1bb6ed63b674..eda4d28ef3b698a9a982fda8c52ddddb2464b669 100644 (file)
@@ -499,15 +499,6 @@ public abstract class Vala.Symbol : CodeNode {
                return isclass;
        }
 
-       /**
-        * Process a [Deprecated] attribute
-        */
-       public virtual void process_deprecated_attribute (Attribute attr) {
-               if (attr.name != "Deprecated") {
-                       return;
-               }
-       }
-
        /**
         * Check to see if the symbol has been deprecated, and emit a warning
         * if it has.