Browse Source

Remove unused code.

mark_story 12 years ago
parent
commit
8f30b3afd3
1 changed files with 0 additions and 32 deletions
  1. 0 32
      src/Database/Expression/QueryExpression.php

+ 0 - 32
src/Database/Expression/QueryExpression.php

@@ -489,38 +489,6 @@ class QueryExpression implements ExpressionInterface, Countable {
 	}
 
 /**
- * Replaces placeholders that are bound for values with array types,
- * it does so by generating multiple new placeholders and joining them
- * with commas.
- *
- * @return void
- */
-	protected function _replaceArrays() {
-		$replacements = [];
-		foreach ($this->_bindings as $n => $b) {
-			if (strpos($b['type'], '[]') === false) {
-				continue;
-			}
-			$token = ':' . $b['placeholder'];
-			$replacements[$token] = $this->_bindMultiplePlaceholders(
-				$b['placeholder'],
-				$b['value'],
-				$b['type']
-			);
-			unset($this->_bindings[$n]);
-		}
-
-		foreach ($this->_conditions as $k => $condition) {
-			if (!is_string($condition)) {
-				continue;
-			}
-			foreach ($replacements as $token => $r) {
-				$this->_conditions[$k] = str_replace($token, $r, $condition);
-			}
-		}
-	}
-
-/**
  * Returns an array of placeholders that will have a bound value corresponding
  * to each value in the first argument.
  *