← Back to team overview

zeitgeist team mailing list archive

[Branch ~zeitgeist/zeitgeist/bluebird] Rev 227: Revert several signature checks to normal assert since they're supposed to

 

------------------------------------------------------------
revno: 227
committer: Siegfried-Angel Gevatter Pujals <siegfried@xxxxxxxxxxxx>
branch nick: bluebird
timestamp: Mon 2011-09-05 13:59:07 +0200
message:
  Revert several signature checks to normal assert since they're supposed to
  be checked by D-Bus anyway.
modified:
  src/datamodel.vala


--
lp:~zeitgeist/zeitgeist/bluebird
https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird

Your team Zeitgeist Framework Team is subscribed to branch lp:~zeitgeist/zeitgeist/bluebird.
To unsubscribe from this branch go to https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird/+edit-subscription
=== modified file 'src/datamodel.vala'
--- src/datamodel.vala	2011-09-05 11:16:04 +0000
+++ src/datamodel.vala	2011-09-05 11:59:07 +0000
@@ -74,10 +74,8 @@
         }
 
         public TimeRange.from_variant (Variant variant)
-            throws EngineError
         {
-            assert_sig (variant.get_type_string () == "(xx)",
-                "expected (xx)");
+            assert (variant.get_type_string () == "(xx)");
 
             int64 start_msec = 0;
             int64 end_msec = 0;
@@ -290,8 +288,7 @@
         }
 
         public Event.from_variant (Variant event_variant) throws EngineError {
-            assert_sig (event_variant.get_type_string () == "(asaasay)",
-                "expected (asaasay)");
+            assert (event_variant.get_type_string () == "(asaasay)");
 
             VariantIter iter = event_variant.iterator();
 
@@ -478,12 +475,10 @@
     {
 
         public static GenericArray<Event> from_variant (Variant vevents)
-            throws EngineError
         {
             GenericArray<Event> events = new GenericArray<Event> ();
 
-            assert_sig (vevents.get_type_string () == "a(asaasay)",
-                "expected a(asaasay)");
+            assert (vevents.get_type_string () == "a(asaasay)");
 
             foreach (Variant event in vevents)
             {