Skip to content
Browse files

Remove unused instances in some Model functions

  • Loading branch information...
1 parent 8023358 commit 17efffb17e28ff5e96af8b35517ea06c9ca8ae0f @Bogh committed Oct 4, 2011
Showing with 1 addition and 5 deletions.
  1. +1 −5 data/Model.php
View
6 data/Model.php
@@ -667,7 +667,6 @@ public static function hasField($field) {
* @filter
*/
public static function create(array $data = array(), array $options = array()) {
- $self = static::_object();
$params = compact('data', 'options');
return static::_filter(__FUNCTION__, $params, function($self, $params) {
@@ -862,7 +861,6 @@ public function validates($entity, array $options = array()) {
* @filter
*/
public function delete($entity, array $options = array()) {
- $self = static::_object();
$params = compact('entity', 'options');
return static::_filter(__FUNCTION__, $params, function($self, $params) {
@@ -890,7 +888,6 @@ public function delete($entity, array $options = array()) {
* @filter
*/
public static function update($data, $conditions = array(), array $options = array()) {
- $self = static::_object();
$params = compact('data', 'conditions', 'options');
return static::_filter(__FUNCTION__, $params, function($self, $params) {
@@ -917,7 +914,6 @@ public static function update($data, $conditions = array(), array $options = arr
* @filter
*/
public static function remove($conditions = array(), array $options = array()) {
- $self = static::_object();
$params = compact('conditions', 'options');
return static::_filter(__FUNCTION__, $params, function($self, $params) {
@@ -1096,4 +1092,4 @@ protected static function &_connection() {
}
}
-?>
+?>

0 comments on commit 17efffb

Please sign in to comment.
Something went wrong with that request. Please try again.