diff options
author | Juerg Billeter <j@bitron.ch> | 2008-02-05 18:54:51 +0000 |
---|---|---|
committer | Jürg Billeter <juergbi@src.gnome.org> | 2008-02-05 18:54:51 +0000 |
commit | 7ede7a9194793f70ea739f5d6717e990f1c63557 (patch) | |
tree | e8f74eb066400e6d89bef6ebb556896b77fe0721 /gee | |
parent | 219f6fce7119df0caed4721162abc27d6dae1b2d (diff) | |
download | vala-7ede7a9194793f70ea739f5d6717e990f1c63557.tar.gz |
remove unreachable return statements
2008-02-05 Juerg Billeter <j@bitron.ch>
* gee/hashmap.vala, gee/readonlycollection.vala, gee/readonlylist.vala,
gee/readonlymap.vala, gee/readonlyset.vala: remove unreachable
return statements
svn path=/trunk/; revision=975
Diffstat (limited to 'gee')
-rw-r--r-- | gee/hashmap.vala | 4 | ||||
-rw-r--r-- | gee/readonlycollection.vala | 2 | ||||
-rw-r--r-- | gee/readonlylist.vala | 2 | ||||
-rw-r--r-- | gee/readonlymap.vala | 3 | ||||
-rw-r--r-- | gee/readonlyset.vala | 2 |
5 files changed, 1 insertions, 12 deletions
diff --git a/gee/hashmap.vala b/gee/hashmap.vala index 3868769b1..2b76d8a4a 100644 --- a/gee/hashmap.vala +++ b/gee/hashmap.vala @@ -202,7 +202,6 @@ public class Gee.HashMap<K,V> : Object, Map<K,V> { public bool add (K key) { assert_not_reached (); - return false; } public void clear () { @@ -211,7 +210,6 @@ public class Gee.HashMap<K,V> : Object, Map<K,V> { public bool remove (K key) { assert_not_reached (); - return false; } public bool contains (K key) { @@ -279,7 +277,6 @@ public class Gee.HashMap<K,V> : Object, Map<K,V> { public bool add (V value) { assert_not_reached (); - return false; } public void clear () { @@ -288,7 +285,6 @@ public class Gee.HashMap<K,V> : Object, Map<K,V> { 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 eaee2b0e0..8dad8f8cd 100644 --- a/gee/readonlycollection.vala +++ b/gee/readonlycollection.vala @@ -61,12 +61,10 @@ public class Gee.ReadOnlyCollection<G> : Object, Iterable<G>, Collection<G> { 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 a7b187a28..2e995d795 100644 --- a/gee/readonlylist.vala +++ b/gee/readonlylist.vala @@ -69,12 +69,10 @@ public class Gee.ReadOnlyList<G> : Object, Iterable<G>, Collection<G>, List<G> { 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 022f58c74..c038e7dee 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<K,V> : Object, Map<K,V> { public bool remove (K key) { assert_not_reached (); - return false; } public void clear () { diff --git a/gee/readonlyset.vala b/gee/readonlyset.vala index 492ec80b4..460518351 100644 --- a/gee/readonlyset.vala +++ b/gee/readonlyset.vala @@ -61,12 +61,10 @@ public class Gee.ReadOnlySet<G> : Object, Iterable<G>, Collection<G>, Set<G> { public bool add (G item) { assert_not_reached (); - return false; } public bool remove (G item) { assert_not_reached (); - return false; } public void clear () { |