From: Juerg Billeter Date: Tue, 5 Feb 2008 18:51:41 +0000 (+0000) Subject: remove unreachable return statements X-Git-Tag: LIBGEE_0_1_2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1c32c158937af65b4b7c616add0b6b7d99341715;p=platform%2Fupstream%2Flibgee.git remove unreachable return statements 2008-02-05 Juerg Billeter * gee/hashmap.vala, gee/readonlycollection.vala, gee/readonlylist.vala, gee/readonlymap.vala, gee/readonlyset.vala: remove unreachable return statements svn path=/trunk/; revision=20 --- diff --git a/ChangeLog b/ChangeLog index 9b6131e..b20d995 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-02-05 Jürg Billeter + + * gee/hashmap.vala, gee/readonlycollection.vala, gee/readonlylist.vala, + gee/readonlymap.vala, gee/readonlyset.vala: remove unreachable + return statements + 2008-01-22 Jürg Billeter * gee/hashmap.vala, gee/hashset.vala: fix invalid variable initializers diff --git a/gee/hashmap.vala b/gee/hashmap.vala index 3868769..2b76d8a 100644 --- a/gee/hashmap.vala +++ b/gee/hashmap.vala @@ -202,7 +202,6 @@ public class Gee.HashMap : Object, Map { public bool add (K key) { assert_not_reached (); - return false; } public void clear () { @@ -211,7 +210,6 @@ public class Gee.HashMap : Object, Map { public bool remove (K key) { assert_not_reached (); - return false; } public bool contains (K key) { @@ -279,7 +277,6 @@ public class Gee.HashMap : Object, Map { public bool add (V value) { assert_not_reached (); - return false; } public void clear () { @@ -288,7 +285,6 @@ public class Gee.HashMap : Object, Map { public bool remove (V value) { assert_not_reached (); - return false; } public bool contains (V value) { diff --git a/gee/readonlycollection.vala b/gee/readonlycollection.vala index eaee2b0..8dad8f8 100644 --- a/gee/readonlycollection.vala +++ b/gee/readonlycollection.vala @@ -61,12 +61,10 @@ public class Gee.ReadOnlyCollection : Object, Iterable, Collection { public bool add (G item) { assert_not_reached (); - return false; } public bool remove (G item) { assert_not_reached (); - return false; } public void clear () { diff --git a/gee/readonlylist.vala b/gee/readonlylist.vala index a7b187a..2e995d7 100644 --- a/gee/readonlylist.vala +++ b/gee/readonlylist.vala @@ -69,12 +69,10 @@ public class Gee.ReadOnlyList : Object, Iterable, Collection, List { public bool add (G item) { assert_not_reached (); - return false; } public bool remove (G item) { assert_not_reached (); - return false; } public void insert (int index, G item) { diff --git a/gee/readonlymap.vala b/gee/readonlymap.vala index 022f58c..c038e7d 100644 --- a/gee/readonlymap.vala +++ b/gee/readonlymap.vala @@ -1,6 +1,6 @@ /* readonlymap.vala * - * Copyright (C) 2007 Jürg Billeter + * Copyright (C) 2007-2008 Jürg Billeter * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -77,7 +77,6 @@ public class Gee.ReadOnlyMap : Object, Map { public bool remove (K key) { assert_not_reached (); - return false; } public void clear () { diff --git a/gee/readonlyset.vala b/gee/readonlyset.vala index 492ec80..4605183 100644 --- a/gee/readonlyset.vala +++ b/gee/readonlyset.vala @@ -61,12 +61,10 @@ public class Gee.ReadOnlySet : Object, Iterable, Collection, Set { public bool add (G item) { assert_not_reached (); - return false; } public bool remove (G item) { assert_not_reached (); - return false; } public void clear () {