[vala/wip/attributes-clean: 25/32] Drop unused references to NoThrow attribute



commit c0bc14970e8281135aec025b1976c84530146dff
Author: Luca Bruno <lucabru src gnome org>
Date:   Thu Jul 7 17:42:25 2011 +0200

    Drop unused references to NoThrow attribute

 vala/valacodewriter.vala |    4 ----
 vala/valamethod.vala     |    2 --
 2 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/vala/valacodewriter.vala b/vala/valacodewriter.vala
index a8a62c9..e724231 100644
--- a/vala/valacodewriter.vala
+++ b/vala/valacodewriter.vala
@@ -1067,10 +1067,6 @@ public class Vala.CodeWriter : CodeVisitor {
 			write_indent ();
 			write_string ("[NoWrapper]");
 		}
-		if (m.get_attribute ("NoThrow") != null) {
-			write_indent ();
-			write_string ("[NoThrow]");
-		}
 		if (m.returns_modified_pointer) {
 			write_indent ();
 			write_string ("[ReturnsModifiedPointer]");
diff --git a/vala/valamethod.vala b/vala/valamethod.vala
index cc00b80..f5761f9 100644
--- a/vala/valamethod.vala
+++ b/vala/valamethod.vala
@@ -517,8 +517,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 == "NoThrow") {
-				get_error_types ().clear ();
 			} else if (a.name == "DestroysInstance") {
 				this_parameter.variable_type.value_owned = true;
 			}



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