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



commit 5368abd0cbdfbf47a9990609fb6dea071fd790af
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 b2ac9aa..d4c5ea6 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]