Commit 7ede7a91 authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter

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
parent 219f6fce
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> 2008-02-05 Jürg Billeter <j@bitron.ch>
* vala/valacfgbuilder.vala: assume that control flow ends when * vala/valacfgbuilder.vala: assume that control flow ends when
......
...@@ -202,7 +202,6 @@ public class Gee.HashMap<K,V> : Object, Map<K,V> { ...@@ -202,7 +202,6 @@ public class Gee.HashMap<K,V> : Object, Map<K,V> {
public bool add (K key) { public bool add (K key) {
assert_not_reached (); assert_not_reached ();
return false;
} }
public void clear () { public void clear () {
...@@ -211,7 +210,6 @@ public class Gee.HashMap<K,V> : Object, Map<K,V> { ...@@ -211,7 +210,6 @@ public class Gee.HashMap<K,V> : Object, Map<K,V> {
public bool remove (K key) { public bool remove (K key) {
assert_not_reached (); assert_not_reached ();
return false;
} }
public bool contains (K key) { public bool contains (K key) {
...@@ -279,7 +277,6 @@ public class Gee.HashMap<K,V> : Object, Map<K,V> { ...@@ -279,7 +277,6 @@ public class Gee.HashMap<K,V> : Object, Map<K,V> {
public bool add (V value) { public bool add (V value) {
assert_not_reached (); assert_not_reached ();
return false;
} }
public void clear () { public void clear () {
...@@ -288,7 +285,6 @@ public class Gee.HashMap<K,V> : Object, Map<K,V> { ...@@ -288,7 +285,6 @@ public class Gee.HashMap<K,V> : Object, Map<K,V> {
public bool remove (V value) { public bool remove (V value) {
assert_not_reached (); assert_not_reached ();
return false;
} }
public bool contains (V value) { public bool contains (V value) {
......
...@@ -61,12 +61,10 @@ public class Gee.ReadOnlyCollection<G> : Object, Iterable<G>, Collection<G> { ...@@ -61,12 +61,10 @@ public class Gee.ReadOnlyCollection<G> : Object, Iterable<G>, Collection<G> {
public bool add (G item) { public bool add (G item) {
assert_not_reached (); assert_not_reached ();
return false;
} }
public bool remove (G item) { public bool remove (G item) {
assert_not_reached (); assert_not_reached ();
return false;
} }
public void clear () { public void clear () {
......
...@@ -69,12 +69,10 @@ public class Gee.ReadOnlyList<G> : Object, Iterable<G>, Collection<G>, List<G> { ...@@ -69,12 +69,10 @@ public class Gee.ReadOnlyList<G> : Object, Iterable<G>, Collection<G>, List<G> {
public bool add (G item) { public bool add (G item) {
assert_not_reached (); assert_not_reached ();
return false;
} }
public bool remove (G item) { public bool remove (G item) {
assert_not_reached (); assert_not_reached ();
return false;
} }
public void insert (int index, G item) { public void insert (int index, G item) {
......
/* readonlymap.vala /* 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 * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public * 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> { ...@@ -77,7 +77,6 @@ public class Gee.ReadOnlyMap<K,V> : Object, Map<K,V> {
public bool remove (K key) { public bool remove (K key) {
assert_not_reached (); assert_not_reached ();
return false;
} }
public void clear () { public void clear () {
......
...@@ -61,12 +61,10 @@ public class Gee.ReadOnlySet<G> : Object, Iterable<G>, Collection<G>, Set<G> { ...@@ -61,12 +61,10 @@ public class Gee.ReadOnlySet<G> : Object, Iterable<G>, Collection<G>, Set<G> {
public bool add (G item) { public bool add (G item) {
assert_not_reached (); assert_not_reached ();
return false;
} }
public bool remove (G item) { public bool remove (G item) {
assert_not_reached (); assert_not_reached ();
return false;
} }
public void clear () { public void clear () {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment