Browse Source

Remove unused code paths.

I couldn't find a test for this loop case so I'm removing it.
mark_story 11 years ago
parent
commit
98e4f253e2
1 changed files with 1 additions and 7 deletions
  1. 1 7
      src/Controller/Component/CookieComponent.php

+ 1 - 7
src/Controller/Component/CookieComponent.php

@@ -376,13 +376,7 @@ class CookieComponent extends Component {
 
 		$decrypted = array();
 		foreach ($values as $name => $value) {
-			if (is_array($value)) {
-				foreach ($value as $key => $val) {
-					$decrypted[$name][$key] = $this->_decode($val, $mode);
-				}
-			} else {
-				$decrypted[$name] = $this->_decode($value, $mode);
-			}
+			$decrypted[$name] = $this->_decode($value, $mode);
 		}
 		return $decrypted;
 	}