From 48f0907bfc46ebd31ab1947e3767bd4e1abd4955 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Fri, 10 Aug 2018 22:40:31 +0700 Subject: [PATCH] remove commented and never used methods in View\Parser class --- system/View/Parser.php | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/system/View/Parser.php b/system/View/Parser.php index abe1fd11146e..83f2eb25ff38 100644 --- a/system/View/Parser.php +++ b/system/View/Parser.php @@ -297,25 +297,6 @@ protected function parse(string $template, array $data = [], array $options = nu } //-------------------------------------------------------------------- -//FIXME the following method does not appear to be used anywhere, so commented out -// protected function is_assoc($arr) -// { -// return array_keys($arr) !== range(0, count($arr) - 1); -// } - //-------------------------------------------------------------------- -//FIXME the following method does not appear to be used anywhere, so commented out -// function strpos_all($haystack, $needle) -// { -// $offset = 0; -// $allpos = []; -// while (($pos = strpos($haystack, $needle, $offset)) !== FALSE) -// { -// $offset = $pos + 1; -// $allpos[] = $pos; -// } -// return $allpos; -// } - //-------------------------------------------------------------------- /** * Parse a single key/value, extracting it