Skip to content
Permalink
Browse files

Remove unused code.

  • Loading branch information...
markstory committed Feb 3, 2014
1 parent db6a0e4 commit 8f30b3afd3411ff7cf43dc096b0cca788d4ad1a2
Showing with 0 additions and 32 deletions.
  1. +0 −32 src/Database/Expression/QueryExpression.php
@@ -488,38 +488,6 @@ protected function _parseCondition($field, $value, $types) {
return new Comparison($expression, $value, $type, $operator);
}
/**
* 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.

0 comments on commit 8f30b3a

Please sign in to comment.
You can’t perform that action at this time.