Permalink
Browse files

Removing all methods currently issuing warnings about being deprecated.

  • Loading branch information...
1 parent 2d3cde1 commit f4e837d985c36e7aaa453b35b0611843e1362b16 @markstory markstory committed Jan 21, 2010
View
@@ -240,17 +240,6 @@ function id($id = null) {
}
}
-/**
- * Remove a variable from the session
- *
- * @return boolean
- * @deprecated Use CakeSession::delete instead
- */
- function del($name) {
- trigger_error(__('CakeSession::del() is deprecated, use CakeSession::delete() instead.', true), E_USER_WARNING);
- return $this->delete($name);
- }
-
/**
* Removes a variable from session.
*
@@ -259,14 +259,6 @@ function read($key = null) {
return $this->__values[$key];
}
-/**
- * @deprecated use delete()
- */
- function del($key) {
- trigger_error(__('Deprecated method, use CookieComponent::delete instead', true), E_USER_WARNING);
- return $this->delete($key);
- }
-
/**
* Delete a cookie value
*
@@ -421,14 +421,6 @@ function getReferer() {
return trim(preg_replace('/(?:\:.*)/', '', $sessHost));
}
-/**
- * @deprecated use getReferer()
- */
- function getReferrer() {
- trigger_error(__('Deprecated method, use RequestHandlerComponent::getReferer instead', true), E_USER_WARNING);
- return $this->getReferer();
- }
-
/**
* Gets remote client IP
*
@@ -137,18 +137,6 @@ function read($name = null) {
return false;
}
-/**
- * @deprecated use delete
- */
- function del($name) {
- trigger_error(__('Deprecated method, use SessionComponent::delete instead', true), E_USER_WARNING);
- if ($this->__active === true) {
- $this->__start();
- return parent::del($name);
- }
- return false;
- }
-
/**
* Wrapper for SessionComponent::del();
*
View
@@ -715,66 +715,6 @@ function errors() {
return $this->__errors;
}
-/**
- * nix flavored alias
- *
- * @see read
- * @deprecated use read
- * @access public
- */
- function ls($sort = true, $exceptions = false) {
- trigger_error(__('Deprecated method, use Folder::read instead', true), E_USER_WARNING);
- return $this->read($sort, $exceptions);
- }
-
-/**
- * nix flavored alias
- *
- * @see create
- * @deprecated use create
- * @access public
- */
- function mkdir($pathname, $mode = 0755) {
- trigger_error(__('Deprecated method, use Folder::create instead', true), E_USER_WARNING);
- return $this->create($pathname, $mode);
- }
-
-/**
- * nix flavored alias
- *
- * @see copy
- * @deprecated use copy
- * @access public
- */
- function cp($options) {
- trigger_error(__('Deprecated method, use Folder::copy instead', true), E_USER_WARNING);
- return $this->copy($options);
- }
-
-/**
- * nix flavored alias
- *
- * @see move
- * @deprecated use move
- * @access public
- */
- function mv($options) {
- trigger_error(__('Deprecated method, use Folder::move instead', true), E_USER_WARNING);
- return $this->move($options);
- }
-
-/**
- * nix flavored alias
- *
- * @see delete
- * @deprecated use delete
- * @access public
- */
- function rm($path) {
- trigger_error(__('Deprecated method, use Folder::delete instead', true), E_USER_WARNING);
- return $this->delete($path);
- }
-
/**
* Get the real path (taking ".." and such into account)
*
View
@@ -515,57 +515,6 @@ function call__($method, $params) {
return $return;
}
-/**
- * Bind model associations on the fly.
- *
- * If $permanent is true, association will not be reset
- * to the originals defined in the model.
- *
- * @param mixed $model A model or association name (string) or set of binding options (indexed by model name type)
- * @param array $options If $model is a string, this is the list of association properties with which $model will
- * be bound
- * @param boolean $permanent Set to true to make the binding permanent
- * @return void
- * @access public
- * @deprecated Use Model::bindModel() instead.
- */
- function bind($model, $options = array(), $permanent = true) {
- trigger_error(__('Deprecated method, use Model::bindModel instead', true), E_USER_WARNING);
- if (!is_array($model)) {
- $model = array($model => $options);
- }
-
- foreach ($model as $name => $options) {
- if (isset($options['type'])) {
- $assoc = $options['type'];
- } elseif (isset($options[0])) {
- $assoc = $options[0];
- } else {
- $assoc = 'belongsTo';
- }
-
- if (!$permanent) {
- $this->__backAssociation[$assoc] = $this->{$assoc};
- }
- foreach ($model as $key => $value) {
- $assocName = $modelName = $key;
-
- if (isset($this->{$assoc}[$assocName])) {
- $this->{$assoc}[$assocName] = array_merge($this->{$assoc}[$assocName], $options);
- } else {
- if (isset($value['className'])) {
- $modelName = $value['className'];
- }
-
- $this->__constructLinkedModel($assocName, $modelName);
- $this->{$assoc}[$assocName] = $model[$assocName];
- $this->__generateAssociation($assoc);
- }
- unset($this->{$assoc}[$assocName]['type'], $this->{$assoc}[$assocName][0]);
- }
- }
- }
-
/**
* Bind model associations on the fly.
*
@@ -1819,15 +1768,6 @@ function updateAll($fields, $conditions = true) {
return $db->update($this, $fields, null, $conditions);
}
-/**
- * @deprecated
- * @link http://book.cakephp.org/view/691/remove
- */
- function remove($id = null, $cascade = true) {
- trigger_error(__('Deprecated method, use Model::delete instead', true), E_USER_WARNING);
- return $this->delete($id, $cascade);
- }
-
/**
* Removes record for given ID. If no ID is given, the current ID is used. Returns true on success.
*
@@ -1873,14 +1813,6 @@ function delete($id = null, $cascade = true) {
return false;
}
-/**
- * @deprecated
- */
- function del($id = null, $cascade = true) {
- trigger_error(__('Deprecated method, use Model::delete instead', true), E_USER_WARNING);
- return $this->delete($id, $cascade);
- }
-
/**
* Cascades model deletes through associated hasMany and hasOne child records.
*
@@ -2730,18 +2662,6 @@ function isForeignKey($field) {
return in_array($field, $foreignKeys);
}
-/**
- * Returns the display field for this model.
- *
- * @return string The name of the display field for this Model (i.e. 'name', 'title').
- * @access public
- * @deprecated
- */
- function getDisplayField() {
- trigger_error(__('Deprecated method, use Model::$displayField instead', true), E_USER_WARNING);
- return $this->displayField;
- }
-
/**
* Escapes the field name and prepends the model name. Escaping is done according to the current database driver's rules.
*

0 comments on commit f4e837d

Please sign in to comment.