From c4172f80051effc62f3eceeeced4c0b66a80eb94 Mon Sep 17 00:00:00 2001 From: "Carsey, Jaben" Date: Fri, 30 Mar 2018 08:19:33 +0800 Subject: [PATCH] BaseTools: remove uncalled functions this same function in 2 classes is never called. Cc: Liming Gao Cc: Yonghong Zhu Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jaben Carsey Reviewed-by: Yonghong Zhu --- .../Python/Ecc/CodeFragmentCollector.py | 19 ------------------- .../Python/Eot/CodeFragmentCollector.py | 19 ------------------- 2 files changed, 38 deletions(-) diff --git a/BaseTools/Source/Python/Ecc/CodeFragmentCollector.py b/BaseTools/Source/Python/Ecc/CodeFragmentCollector.py index 053f1b22eb..ffa51de7c1 100644 --- a/BaseTools/Source/Python/Ecc/CodeFragmentCollector.py +++ b/BaseTools/Source/Python/Ecc/CodeFragmentCollector.py @@ -75,25 +75,6 @@ class CodeFragmentCollector: self.__Token = "" self.__SkippedChars = "" - ## __SkipWhiteSpace() method - # - # Skip white spaces from current char, return number of chars skipped - # - # @param self The object pointer - # @retval Count The number of chars skipped - # - def __SkipWhiteSpace(self): - Count = 0 - while not self.__EndOfFile(): - Count += 1 - if self.__CurrentChar() in (T_CHAR_NULL, T_CHAR_CR, T_CHAR_LF, T_CHAR_SPACE, T_CHAR_TAB): - self.__SkippedChars += str(self.__CurrentChar()) - self.__GetOneChar() - - else: - Count = Count - 1 - return Count - ## __EndOfFile() method # # Judge current buffer pos is at file end diff --git a/BaseTools/Source/Python/Eot/CodeFragmentCollector.py b/BaseTools/Source/Python/Eot/CodeFragmentCollector.py index 9da5a84afe..87f179206d 100644 --- a/BaseTools/Source/Python/Eot/CodeFragmentCollector.py +++ b/BaseTools/Source/Python/Eot/CodeFragmentCollector.py @@ -73,25 +73,6 @@ class CodeFragmentCollector: self.__Token = "" self.__SkippedChars = "" - ## __SkipWhiteSpace() method - # - # Skip white spaces from current char, return number of chars skipped - # - # @param self The object pointer - # @retval Count The number of chars skipped - # - def __SkipWhiteSpace(self): - Count = 0 - while not self.__EndOfFile(): - Count += 1 - if self.__CurrentChar() in (T_CHAR_NULL, T_CHAR_CR, T_CHAR_LF, T_CHAR_SPACE, T_CHAR_TAB): - self.__SkippedChars += str(self.__CurrentChar()) - self.__GetOneChar() - - else: - Count = Count - 1 - return Count - ## __EndOfFile() method # # Judge current buffer pos is at file end