Remove dead code

This commit is contained in:
Adrien Crivelli 2018-10-05 11:08:51 +10:00
parent 50a9bc83ab
commit 1e5be30290
No known key found for this signature in database
GPG Key ID: B182FD79DC6DE92E
1 changed files with 2 additions and 1 deletions

View File

@ -3659,16 +3659,17 @@ class Calculation
break; break;
// Binary Operators // Binary Operators
case ':': // Range case ':': // Range
$sheet1 = $sheet2 = '';
if (strpos($operand1Data['reference'], '!') !== false) { if (strpos($operand1Data['reference'], '!') !== false) {
list($sheet1, $operand1Data['reference']) = Worksheet::extractSheetTitle($operand1Data['reference'], true); list($sheet1, $operand1Data['reference']) = Worksheet::extractSheetTitle($operand1Data['reference'], true);
} else { } else {
$sheet1 = ($pCellParent !== null) ? $pCellWorksheet->getTitle() : ''; $sheet1 = ($pCellParent !== null) ? $pCellWorksheet->getTitle() : '';
} }
list($sheet2, $operand2Data['reference']) = Worksheet::extractSheetTitle($operand2Data['reference'], true); list($sheet2, $operand2Data['reference']) = Worksheet::extractSheetTitle($operand2Data['reference'], true);
if (empty($sheet2)) { if (empty($sheet2)) {
$sheet2 = $sheet1; $sheet2 = $sheet1;
} }
if ($sheet1 == $sheet2) { if ($sheet1 == $sheet2) {
if ($operand1Data['reference'] === null) { if ($operand1Data['reference'] === null) {
if ((trim($operand1Data['value']) != '') && (is_numeric($operand1Data['value']))) { if ((trim($operand1Data['value']) != '') && (is_numeric($operand1Data['value']))) {