remove unreachable return statements
authorJuerg Billeter <j@bitron.ch>
Tue, 5 Feb 2008 18:54:51 +0000 (18:54 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Tue, 5 Feb 2008 18:54:51 +0000 (18:54 +0000)
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

ChangeLog
gee/hashmap.vala
gee/readonlycollection.vala
gee/readonlylist.vala
gee/readonlymap.vala
gee/readonlyset.vala

index 39eb778..44c16e6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2008-02-05  Jürg Billeter  <j@bitron.ch>
 
+       * gee/hashmap.vala, gee/readonlycollection.vala, gee/readonlylist.vala,
+         gee/readonlymap.vala, gee/readonlyset.vala: remove unreachable
+         return statements
+
+2008-02-05  Jürg Billeter  <j@bitron.ch>
+
        * vala/valacfgbuilder.vala: assume that control flow ends when
          invoking a method with the [NoReturn] attribute
 
index 3868769..2b76d8a 100644 (file)
@@ -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) {
index eaee2b0..8dad8f8 100644 (file)
@@ -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 () {
index a7b187a..2e995d7 100644 (file)
@@ -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) {
index 022f58c..c038e7d 100644 (file)
@@ -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 () {
index 492ec80..4605183 100644 (file)
@@ -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 () {