|
From: <yi...@us...> - 2011-09-02 00:54:55
|
Revision: 2285
http://edk2-buildtools.svn.sourceforge.net/edk2-buildtools/?rev=2285&view=rev
Author: yingke
Date: 2011-09-02 00:54:48 +0000 (Fri, 02 Sep 2011)
Log Message:
-----------
Remove some unused code.
Signed-off-by: yingke
Reviewed-by: gikidy
Reviewed-by: jsu1
Modified Paths:
--------------
trunk/BaseTools/Source/Python/Common/FdfParserLite.py
trunk/BaseTools/Source/Python/Ecc/c.py
trunk/BaseTools/Source/Python/Eot/c.py
trunk/BaseTools/Source/Python/GenFds/FdfParser.py
trunk/BaseTools/gcc/mingw-gcc-build.py
Modified: trunk/BaseTools/Source/Python/Common/FdfParserLite.py
===================================================================
--- trunk/BaseTools/Source/Python/Common/FdfParserLite.py 2011-09-01 09:04:06 UTC (rev 2284)
+++ trunk/BaseTools/Source/Python/Common/FdfParserLite.py 2011-09-02 00:54:48 UTC (rev 2285)
@@ -3647,8 +3647,15 @@
return CycleRefExists
if __name__ == "__main__":
- parser = FdfParser("..\LakeportX64Pkg.fdf")
+ import sys
try:
+ test_file = sys.argv[1]
+ except IndexError, v:
+ print "Usage: %s filename" % sys.argv[0]
+ sys.exit(1)
+
+ parser = FdfParser(test_file)
+ try:
parser.ParseFile()
parser.CycleReferenceCheck()
except Warning, X:
Modified: trunk/BaseTools/Source/Python/Ecc/c.py
===================================================================
--- trunk/BaseTools/Source/Python/Ecc/c.py 2011-09-01 09:04:06 UTC (rev 2284)
+++ trunk/BaseTools/Source/Python/Ecc/c.py 2011-09-02 00:54:48 UTC (rev 2285)
@@ -2539,7 +2539,12 @@
# EdkLogger.Initialize()
# EdkLogger.SetLevel(EdkLogger.QUIET)
# CollectSourceCodeDataIntoDB(sys.argv[1])
- MsgList = CheckFuncHeaderDoxygenComments('C:\\Combo\\R9\\LakeportX64Dev\\FlashDevicePkg\\Library\\SpiFlashChipM25P64\\SpiFlashChipM25P64.c')
+ try:
+ test_file = sys.argv[1]
+ except IndexError, v:
+ print "Usage: %s filename" % sys.argv[0]
+ sys.exit(1)
+ MsgList = CheckFuncHeaderDoxygenComments(test_file)
for Msg in MsgList:
print Msg
print 'Done!'
Modified: trunk/BaseTools/Source/Python/Eot/c.py
===================================================================
--- trunk/BaseTools/Source/Python/Eot/c.py 2011-09-01 09:04:06 UTC (rev 2284)
+++ trunk/BaseTools/Source/Python/Eot/c.py 2011-09-02 00:54:48 UTC (rev 2285)
@@ -31,16 +31,6 @@
ComplexTypeDict = {}
SUDict = {}
-## GetIgnoredDirListPattern() method
-#
-# Get the pattern of ignored direction list
-#
-# @return p: the pattern of ignored direction list
-#
-def GetIgnoredDirListPattern():
- p = re.compile(r'.*[\\/](?:BUILD|INTELRESTRICTEDTOOLS|INTELRESTRICTEDPKG|PCCTS)[\\/].*')
- return p
-
## GetFuncDeclPattern() method
#
# Get the pattern of function declaration
Modified: trunk/BaseTools/Source/Python/GenFds/FdfParser.py
===================================================================
--- trunk/BaseTools/Source/Python/GenFds/FdfParser.py 2011-09-01 09:04:06 UTC (rev 2284)
+++ trunk/BaseTools/Source/Python/GenFds/FdfParser.py 2011-09-02 00:54:48 UTC (rev 2285)
@@ -4060,12 +4060,19 @@
return False
if __name__ == "__main__":
- parser = FdfParser("..\LakeportX64Pkg.fdf")
+ import sys
try:
+ test_file = sys.argv[1]
+ except IndexError, v:
+ print "Usage: %s filename" % sys.argv[0]
+ sys.exit(1)
+
+ parser = FdfParser(test_file)
+ try:
parser.ParseFile()
parser.CycleReferenceCheck()
except Warning, X:
- print str(X)
+ print str(X)
else:
print "Success!"
Modified: trunk/BaseTools/gcc/mingw-gcc-build.py
===================================================================
--- trunk/BaseTools/gcc/mingw-gcc-build.py 2011-09-01 09:04:06 UTC (rev 2284)
+++ trunk/BaseTools/gcc/mingw-gcc-build.py 2011-09-02 00:54:48 UTC (rev 2285)
@@ -286,7 +286,7 @@
self.dots = 0
local_file = os.path.join(self.config.src_dir, fdata['filename'])
url = fdata['url']
- print 'Downloading %s:' % fname, url
+ print 'Downloading %s:' % fname, url
if retries > 0:
print '(retry)',
sys.stdout.flush()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|