Skip to content

Commit

Permalink
Remove uneeded instances of Set
Browse files Browse the repository at this point in the history
  • Loading branch information
shama committed Jul 5, 2012
1 parent 717e56a commit fb06627
Show file tree
Hide file tree
Showing 23 changed files with 7 additions and 25 deletions.
1 change: 0 additions & 1 deletion lib/Cake/Console/Command/AclShell.php
Expand Up @@ -23,7 +23,6 @@
use Cake\Controller\Component\AclComponent;
use Cake\Core\Configure;
use Cake\Utility\Hash;
use Cake\Utility\Set;

/**
* Shell for ACL management. This console is known to have issues with zend.ze1_compatibility_mode
Expand Down
1 change: 0 additions & 1 deletion lib/Cake/Console/Command/Task/ExtractTask.php
Expand Up @@ -24,7 +24,6 @@
use Cake\Utility\Folder;
use Cake\Utility\Hash;
use Cake\Utility\Inflector;
use Cake\Utility\Set;

/**
* Language string extractor
Expand Down
1 change: 0 additions & 1 deletion lib/Cake/Controller/Component/Acl/DbAcl.php
Expand Up @@ -19,7 +19,6 @@
use Cake\Core\Object;
use Cake\Utility\ClassRegistry;
use Cake\Utility\Hash;
use Cake\Utility\Set;

/**
* DbAcl implements an ACL control system in the database. ARO's and ACO's are
Expand Down
1 change: 0 additions & 1 deletion lib/Cake/Controller/Component/AclComponent.php
Expand Up @@ -23,7 +23,6 @@
use Cake\Error;
use Cake\Utility\ClassRegistry;
use Cake\Utility\Inflector;
use Cake\Utility\Set;

/**
* Access Control List factory class.
Expand Down
1 change: 0 additions & 1 deletion lib/Cake/Controller/Component/Auth/BaseAuthenticate.php
Expand Up @@ -20,7 +20,6 @@
use Cake\Utility\ClassRegistry;
use Cake\Utility\Hash;
use Cake\Utility\Security;
use Cake\Utility\Set;

/**
* Base Authentication class with common methods and properties.
Expand Down
1 change: 0 additions & 1 deletion lib/Cake/Controller/Component/Auth/BaseAuthorize.php
Expand Up @@ -21,7 +21,6 @@
use Cake\Network\Response;
use Cake\Utility\Hash;
use Cake\Utility\Inflector;
use Cake\Utility\Set;

/**
* Abstract base authorization adapter for AuthComponent.
Expand Down
1 change: 0 additions & 1 deletion lib/Cake/Controller/Component/AuthComponent.php
Expand Up @@ -33,7 +33,6 @@
use Cake\Utility\Debugger;
use Cake\Utility\Hash;
use Cake\Utility\Security;
use Cake\Utility\Set;

/**
* Authentication control component class
Expand Down
1 change: 0 additions & 1 deletion lib/Cake/Controller/Component/CookieComponent.php
Expand Up @@ -25,7 +25,6 @@
use Cake\Network\Response;
use Cake\Utility\Hash;
use Cake\Utility\Security;
use Cake\Utility\Set;

/**
* Cookie Component.
Expand Down
1 change: 0 additions & 1 deletion lib/Cake/Controller/Component/PaginatorComponent.php
Expand Up @@ -22,7 +22,6 @@
use Cake\Controller\ComponentCollection;
use Cake\Error;
use Cake\Utility\Hash;
use Cake\Utility\Set;

/**
* This component is used to handle automatic model data pagination. The primary way to use this
Expand Down
1 change: 0 additions & 1 deletion lib/Cake/Controller/Component/SecurityComponent.php
Expand Up @@ -25,7 +25,6 @@
use Cake\Network\Request;
use Cake\Utility\Hash;
use Cake\Utility\Security;
use Cake\Utility\Set;

/**
* The Security Component creates an easy way to integrate tighter security in
Expand Down
1 change: 0 additions & 1 deletion lib/Cake/Core/Configure.php
Expand Up @@ -19,7 +19,6 @@
use Cake\Configure\PhpReader;
use Cake\Error;
use Cake\Utility\Hash;
use Cake\Utility\Set;

/**
* Configuration class. Used for managing runtime configuration information.
Expand Down
1 change: 0 additions & 1 deletion lib/Cake/Core/Object.php
Expand Up @@ -19,7 +19,6 @@
use Cake\Routing\Dispatcher;
use Cake\Routing\Router;
use Cake\Utility\Hash;
use Cake\Utility\Set;

/**
* Object class provides a few generic methods used in several subclasses.
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Model/Behavior/ContainableBehavior.php
Expand Up @@ -21,7 +21,7 @@
namespace Cake\Model\Behavior;
use Cake\Model\Model;
use Cake\Model\ModelBehavior;
use Cake\Utility\Set;
use Cake\Utility\Hash;

/**
* Behavior to allow for dynamic and atomic manipulation of a Model's associations
Expand Down
1 change: 1 addition & 0 deletions lib/Cake/Model/Behavior/TreeBehavior.php
Expand Up @@ -22,6 +22,7 @@
use Cake\Model\ConnectionManager;
use Cake\Model\Model;
use Cake\Model\ModelBehavior;
use Cake\Utility\Hash;

/**
* Tree Behavior.
Expand Down
1 change: 0 additions & 1 deletion lib/Cake/Network/Http/HttpSocket.php
Expand Up @@ -22,7 +22,6 @@
use Cake\Network\Socket;
use Cake\Utility\Hash;
use Cake\Utility\Inflector;
use Cake\Utility\Set;

/**
* Cake network socket connection class.
Expand Down
3 changes: 1 addition & 2 deletions lib/Cake/Network/Request.php
Expand Up @@ -19,7 +19,6 @@
use Cake\Core\Configure;
use Cake\Error;
use Cake\Utility\Hash;
use Cake\Utility\Set;

/**
* A class that helps wrap Request information and particulars about a single request.
Expand Down Expand Up @@ -347,7 +346,7 @@ protected function _processFileData($path, $data, $field) {
$this->_processFileData($newPath, $fields, $field);
} else {
$newPath .= '.' . $field;
$this->data = Set::insert($this->data, $newPath, $fields);
$this->data = Hash::insert($this->data, $newPath, $fields);
}
}
}
Expand Down
1 change: 0 additions & 1 deletion lib/Cake/Routing/Router.php
Expand Up @@ -25,7 +25,6 @@
use Cake\Routing\Route\Route;
use Cake\Utility\Hash;
use Cake\Utility\Inflector;
use Cake\Utility\Set;

/**
* Parses the request URL into controller, action, and parameters. Uses the connected routes
Expand Down
4 changes: 2 additions & 2 deletions lib/Cake/Test/TestApp/Model/PaginatorControllerPost.php
Expand Up @@ -18,7 +18,7 @@
*/
namespace TestApp\Model;
use Cake\TestSuite\Fixture\TestModel;
use Cake\Utility\Set;
use Cake\Utility\Hash;

/**
* PaginatorControllerPost class
Expand Down Expand Up @@ -81,7 +81,7 @@ public function beforeFind($query) {
public function find($conditions = null, $fields = array(), $order = null, $recursive = null) {
if ($conditions == 'popular') {
$conditions = array($this->name . '.' . $this->primaryKey .' > ' => '1');
$options = Set::merge($fields, compact('conditions'));
$options = Hash::merge($fields, compact('conditions'));
return parent::find('all', $options);
}
return parent::find($conditions, $fields);
Expand Down
1 change: 0 additions & 1 deletion lib/Cake/Test/TestCase/Console/ShellTest.php
Expand Up @@ -25,7 +25,6 @@
use Cake\TestSuite\TestCase;
use Cake\Utility\Folder;
use Cake\Utility\Hash;
use Cake\Utility\Set;

/**
* ShellTestShell class
Expand Down
1 change: 0 additions & 1 deletion lib/Cake/Test/TestCase/Controller/ControllerTest.php
Expand Up @@ -24,7 +24,6 @@
use Cake\TestSuite\TestCase;
use Cake\Utility\ClassRegistry;
use Cake\Utility\Hash;
use Cake\Utility\Set;
use TestPlugin\Controller\TestPluginController;

/**
Expand Down
1 change: 0 additions & 1 deletion lib/Cake/Test/TestCase/Network/Http/HttpSocketTest.php
Expand Up @@ -21,7 +21,6 @@
use Cake\Network\Http\HttpSocket;
use Cake\TestSuite\TestCase;
use Cake\Utility\Hash;
use Cake\Utility\Set;

/**
* TestAuthentication class
Expand Down
1 change: 0 additions & 1 deletion lib/Cake/TestSuite/Fixture/TestFixture.php
Expand Up @@ -21,7 +21,6 @@
use Cake\Utility\ClassRegistry;
use Cake\Utility\Hash;
use Cake\Utility\Inflector;
use Cake\Utility\Set;

/**
* TestFixture is responsible for building and destroying tables to be used
Expand Down
4 changes: 2 additions & 2 deletions lib/Cake/View/XmlView.php
Expand Up @@ -13,7 +13,7 @@
namespace Cake\View;
use Cake\Controller\Controller;
use Cake\Network\Response;
use Cake\Utility\Set;
use Cake\Utility\Hash;
use Cake\Utility\Xml;

/**
Expand Down Expand Up @@ -95,7 +95,7 @@ public function render($view = null, $layout = null) {
}
} else {
$data = isset($this->viewVars[$serialize]) ? $this->viewVars[$serialize] : null;
if (is_array($data) && Set::numeric(array_keys($data))) {
if (is_array($data) && Hash::numeric(array_keys($data))) {
$data = array('response' => array($serialize => $data));
}
}
Expand Down

0 comments on commit fb06627

Please sign in to comment.