From 1e5be30290a4b623eb51a3cbd1d7d08b33798617 Mon Sep 17 00:00:00 2001 From: Adrien Crivelli Date: Fri, 5 Oct 2018 11:08:51 +1000 Subject: [PATCH] Remove dead code --- src/PhpSpreadsheet/Calculation/Calculation.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/PhpSpreadsheet/Calculation/Calculation.php b/src/PhpSpreadsheet/Calculation/Calculation.php index 5dc74ef0..34338a6b 100644 --- a/src/PhpSpreadsheet/Calculation/Calculation.php +++ b/src/PhpSpreadsheet/Calculation/Calculation.php @@ -3659,16 +3659,17 @@ class Calculation break; // Binary Operators case ':': // Range - $sheet1 = $sheet2 = ''; if (strpos($operand1Data['reference'], '!') !== false) { list($sheet1, $operand1Data['reference']) = Worksheet::extractSheetTitle($operand1Data['reference'], true); } else { $sheet1 = ($pCellParent !== null) ? $pCellWorksheet->getTitle() : ''; } + list($sheet2, $operand2Data['reference']) = Worksheet::extractSheetTitle($operand2Data['reference'], true); if (empty($sheet2)) { $sheet2 = $sheet1; } + if ($sheet1 == $sheet2) { if ($operand1Data['reference'] === null) { if ((trim($operand1Data['value']) != '') && (is_numeric($operand1Data['value']))) {