BaseTools: Remove the unnecessary check for RAW File

Because the __VerifyFile function already checked whether the file is
valid.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
Yonghong Zhu 2016-03-28 12:27:50 +08:00
parent 877c0a93be
commit 4fa7b3301e
1 changed files with 0 additions and 2 deletions

View File

@ -2731,8 +2731,6 @@ class FdfParser:
if FileName == '}':
self.__UndoToken()
raise Warning("expected Filename value", self.FileName, self.CurrentLineNumber)
elif not os.path.isfile(FileName):
raise Warning("expected '}'", self.FileName, self.CurrentLineNumber)
self.__VerifyFile(FileName)
File = PathClass(NormPath(FileName), GenFdsGlobalVariable.WorkSpaceDir)