[Mapbender-commits] r6232 - trunk/mapbender/http/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon May 31 09:52:59 EDT 2010


Author: christoph
Date: 2010-05-31 09:52:59 -0400 (Mon, 31 May 2010)
New Revision: 6232

Modified:
   trunk/mapbender/http/classes/class_group.php
Log:


Modified: trunk/mapbender/http/classes/class_group.php
===================================================================
--- trunk/mapbender/http/classes/class_group.php	2010-05-31 13:45:57 UTC (rev 6231)
+++ trunk/mapbender/http/classes/class_group.php	2010-05-31 13:52:59 UTC (rev 6232)
@@ -192,20 +192,6 @@
 		return true;
 	}
 
-	public static function intersect ($groups1, $groups2) {
-		$intersection = array();
-		$len1 = count($groups1) - 1;
-		for ($i = $len1; $i >= 0; $i--) {
-			$len2 = count($groups2) - 1;
-			for ($j = $len1; $j >= 0; $j--) {
-				if ($groups1[$i]->id === $groups2[$j]->id) {
-					$intersection[]= $groups1[$i];
-				}
-			}
-		}
-		return $intersection;
-	}
-
     /*
     * @return Array of Groups
     * @param $filter UNUSED! AssocArray, valid keys "id","name". Use SQL's % and _ to perform simple matching



More information about the Mapbender_commits mailing list