From 49a092f1d07434de8f054e03a8f257dd0f1ec691 Mon Sep 17 00:00:00 2001 From: the_undefined Date: Fri, 14 Mar 2008 18:30:34 +0000 Subject: [PATCH] Removed code that was not needed any longer from Set::extract git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6569 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/set.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/cake/libs/set.php b/cake/libs/set.php index 180d18b24..6d9e50043 100644 --- a/cake/libs/set.php +++ b/cake/libs/set.php @@ -391,15 +391,7 @@ class Set extends Object { if (!isset($contexts[0])) { $contexts = array($data); } - if (is_string($path)) { - $last = substr($path, -1, 1); - if ($last == '*' && substr($path, -2, 1) != '/') { - $path = substr($path, 0, -1); - } else { - $last = false; - } - $tokens = array_slice(explode('/', $path), 1); - } + $tokens = array_slice(explode('/', $path), 1); do { $token = array_shift($tokens); $conditions = false;