vala r975 - in trunk: . gee



Author: juergbi
Date: Tue Feb  5 18:54:51 2008
New Revision: 975
URL: http://svn.gnome.org/viewvc/vala?rev=975&view=rev

Log:
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


Modified:
   trunk/ChangeLog
   trunk/gee/hashmap.vala
   trunk/gee/readonlycollection.vala
   trunk/gee/readonlylist.vala
   trunk/gee/readonlymap.vala
   trunk/gee/readonlyset.vala

Modified: trunk/gee/hashmap.vala
==============================================================================
--- trunk/gee/hashmap.vala	(original)
+++ trunk/gee/hashmap.vala	Tue Feb  5 18:54:51 2008
@@ -202,7 +202,6 @@
 
 		public bool add (K key) {
 			assert_not_reached ();
-			return false;
 		}
 
 		public void clear () {
@@ -211,7 +210,6 @@
 
 		public bool remove (K key) {
 			assert_not_reached ();
-			return false;
 		}
 
 		public bool contains (K key) {
@@ -279,7 +277,6 @@
 
 		public bool add (V value) {
 			assert_not_reached ();
-			return false;
 		}
 
 		public void clear () {
@@ -288,7 +285,6 @@
 
 		public bool remove (V value) {
 			assert_not_reached ();
-			return false;
 		}
 
 		public bool contains (V value) {

Modified: trunk/gee/readonlycollection.vala
==============================================================================
--- trunk/gee/readonlycollection.vala	(original)
+++ trunk/gee/readonlycollection.vala	Tue Feb  5 18:54:51 2008
@@ -61,12 +61,10 @@
 
 	public bool add (G item) {
 		assert_not_reached ();
-		return false;
 	}
 
 	public bool remove (G item) {
 		assert_not_reached ();
-		return false;
 	}
 
 	public void clear () {

Modified: trunk/gee/readonlylist.vala
==============================================================================
--- trunk/gee/readonlylist.vala	(original)
+++ trunk/gee/readonlylist.vala	Tue Feb  5 18:54:51 2008
@@ -69,12 +69,10 @@
 
 	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) {

Modified: trunk/gee/readonlymap.vala
==============================================================================
--- trunk/gee/readonlymap.vala	(original)
+++ trunk/gee/readonlymap.vala	Tue Feb  5 18:54:51 2008
@@ -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 bool remove (K key) {
 		assert_not_reached ();
-		return false;
 	}
 
 	public void clear () {

Modified: trunk/gee/readonlyset.vala
==============================================================================
--- trunk/gee/readonlyset.vala	(original)
+++ trunk/gee/readonlyset.vala	Tue Feb  5 18:54:51 2008
@@ -61,12 +61,10 @@
 
 	public bool add (G item) {
 		assert_not_reached ();
-		return false;
 	}
 
 	public bool remove (G item) {
 		assert_not_reached ();
-		return false;
 	}
 
 	public void clear () {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]