[vala/wip/attributes: 24/40] Drop Symbol.process_deprecated_attribute
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/attributes: 24/40] Drop Symbol.process_deprecated_attribute
- Date: Mon, 1 Aug 2011 17:11:02 +0000 (UTC)
commit dbbeba676a266e55ff1ede6dea53d534d4b15b6e
Author: Luca Bruno <lucabru src gnome org>
Date: Thu Jul 7 15:51:51 2011 +0200
Drop Symbol.process_deprecated_attribute
vala/valaclass.vala | 2 --
vala/valaconstant.vala | 2 --
vala/valadelegate.vala | 2 --
vala/valaenum.vala | 2 --
vala/valaerrordomain.vala | 2 --
vala/valafield.vala | 2 --
vala/valainterface.vala | 2 --
vala/valamethod.vala | 2 --
vala/valaproperty.vala | 2 --
vala/valasignal.vala | 2 --
vala/valastruct.vala | 2 --
vala/valasymbol.vala | 9 ---------
12 files changed, 0 insertions(+), 31 deletions(-)
---
diff --git a/vala/valaclass.vala b/vala/valaclass.vala
index be1862a..000f9ad 100644
--- a/vala/valaclass.vala
+++ b/vala/valaclass.vala
@@ -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") {
diff --git a/vala/valaconstant.vala b/vala/valaconstant.vala
index 0c77d07..e0c7d21 100644
--- a/vala/valaconstant.vala
+++ b/vala/valaconstant.vala
@@ -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);
}
diff --git a/vala/valadelegate.vala b/vala/valadelegate.vala
index 6d22fba..9e53267 100644
--- a/vala/valadelegate.vala
+++ b/vala/valadelegate.vala
@@ -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);
}
diff --git a/vala/valaenum.vala b/vala/valaenum.vala
index fed3286..28d3151 100644
--- a/vala/valaenum.vala
+++ b/vala/valaenum.vala
@@ -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);
}
}
}
diff --git a/vala/valaerrordomain.vala b/vala/valaerrordomain.vala
index 40dd9b1..92bcf7d 100644
--- a/vala/valaerrordomain.vala
+++ b/vala/valaerrordomain.vala
@@ -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);
}
diff --git a/vala/valafield.vala b/vala/valafield.vala
index 4d260d1..31c05c1 100644
--- a/vala/valafield.vala
+++ b/vala/valafield.vala
@@ -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);
}
diff --git a/vala/valainterface.vala b/vala/valainterface.vala
index d189323..edbd120 100644
--- a/vala/valainterface.vala
+++ b/vala/valainterface.vala
@@ -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);
}
diff --git a/vala/valamethod.vala b/vala/valamethod.vala
index d1215ab..a907105 100644
--- a/vala/valamethod.vala
+++ b/vala/valamethod.vala
@@ -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") {
diff --git a/vala/valaproperty.vala b/vala/valaproperty.vala
index 467cdf8..ea24086 100644
--- a/vala/valaproperty.vala
+++ b/vala/valaproperty.vala
@@ -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);
}
}
}
diff --git a/vala/valasignal.vala b/vala/valasignal.vala
index ee0667e..9b27d3d 100644
--- a/vala/valasignal.vala
+++ b/vala/valasignal.vala
@@ -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);
}
diff --git a/vala/valastruct.vala b/vala/valastruct.vala
index ea0ccf7..ed8d992 100644
--- a/vala/valastruct.vala
+++ b/vala/valastruct.vala
@@ -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") {
diff --git a/vala/valasymbol.vala b/vala/valasymbol.vala
index 6368a05..eda4d28 100644
--- a/vala/valasymbol.vala
+++ b/vala/valasymbol.vala
@@ -500,15 +500,6 @@ public abstract class Vala.Symbol : CodeNode {
}
/**
- * 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.
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]