[gxml] * remove unnecessary try-catch that was causing warnings



commit 0a0474c8acaf5989fe4ab81fb8f862129ccfe153
Author: Richard Schwarting <aquarichy gmail com>
Date:   Fri Jul 6 02:44:52 2012 -0400

    * remove unnecessary try-catch that was causing warnings

 test/ValaLibxml2Test.vala |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/test/ValaLibxml2Test.vala b/test/ValaLibxml2Test.vala
index cba6b1a..69977ba 100644
--- a/test/ValaLibxml2Test.vala
+++ b/test/ValaLibxml2Test.vala
@@ -4,7 +4,7 @@ using GXmlDom;
 class ValaLibxml2Test : GXmlTest {
 	public static void add_tests () {
 		Test.add_func ("/gxml/vala_libxml2/xmlHashTable", () => {
-				try {
+				// try {
 					Xml.HashTable *table = new Xml.HashTable (10);
 					assert (table->size () == 0);
 					table->add_entry ("maple", "syrup");
@@ -31,10 +31,10 @@ class ValaLibxml2Test : GXmlTest {
 					table->free (/* should pass it a string deallocator */ null);
 					/* deallocator: takes (void *payload, string name), just frees payload */
 					// TODO: figure out a way to test whether table was freed
-				} catch (Error e) {
-					GLib.warning ("%s", e.message);
-					assert (false);
-				}
+				// } catch (Error e) {
+				// 	GLib.warning ("%s", e.message);
+				// 	assert (false);
+				// }
 			});
 	}
 }
\ No newline at end of file



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