BaseTools: UPT/PomAdapter: Remove unnecessary code
Running the vulture tool on the UPT/PomAdapter folder gave the following report. Remove the unnecessary code. - UPT/PomAdapter/DecPomAlignment.py:898: unused method 'ShowPackage' (60% confidence) Signed-off-by: Pierre Gondois <pierre.gondois@arm.com>
This commit is contained in:
committed by
Liming Gao
parent
583b64122c
commit
9b52f0c205
@@ -891,53 +891,6 @@ class DecPomAlignment(PackageObject):
|
||||
|
||||
self.SetModuleFileList(ModuleFileList)
|
||||
|
||||
## Show detailed information of Package
|
||||
#
|
||||
# Print all members and their values of Package class
|
||||
#
|
||||
def ShowPackage(self):
|
||||
print('\nName =', self.GetName())
|
||||
print('\nBaseName =', self.GetBaseName())
|
||||
print('\nVersion =', self.GetVersion())
|
||||
print('\nGuid =', self.GetGuid())
|
||||
|
||||
print('\nStandardIncludes = %d ' \
|
||||
% len(self.GetStandardIncludeFileList()), end=' ')
|
||||
for Item in self.GetStandardIncludeFileList():
|
||||
print(Item.GetFilePath(), ' ', Item.GetSupArchList())
|
||||
print('\nPackageIncludes = %d \n' \
|
||||
% len(self.GetPackageIncludeFileList()), end=' ')
|
||||
for Item in self.GetPackageIncludeFileList():
|
||||
print(Item.GetFilePath(), ' ', Item.GetSupArchList())
|
||||
|
||||
print('\nGuids =', self.GetGuidList())
|
||||
for Item in self.GetGuidList():
|
||||
print(Item.GetCName(), Item.GetGuid(), Item.GetSupArchList())
|
||||
print('\nProtocols =', self.GetProtocolList())
|
||||
for Item in self.GetProtocolList():
|
||||
print(Item.GetCName(), Item.GetGuid(), Item.GetSupArchList())
|
||||
print('\nPpis =', self.GetPpiList())
|
||||
for Item in self.GetPpiList():
|
||||
print(Item.GetCName(), Item.GetGuid(), Item.GetSupArchList())
|
||||
print('\nLibraryClasses =', self.GetLibraryClassList())
|
||||
for Item in self.GetLibraryClassList():
|
||||
print(Item.GetLibraryClass(), Item.GetRecommendedInstance(), \
|
||||
Item.GetSupArchList())
|
||||
print('\nPcds =', self.GetPcdList())
|
||||
for Item in self.GetPcdList():
|
||||
print('CName=', Item.GetCName(), 'TokenSpaceGuidCName=', \
|
||||
Item.GetTokenSpaceGuidCName(), \
|
||||
'DefaultValue=', Item.GetDefaultValue(), \
|
||||
'ValidUsage=', Item.GetValidUsage(), \
|
||||
'SupArchList', Item.GetSupArchList(), \
|
||||
'Token=', Item.GetToken(), 'DatumType=', Item.GetDatumType())
|
||||
|
||||
for Item in self.GetMiscFileList():
|
||||
print(Item.GetName())
|
||||
for FileObjectItem in Item.GetFileList():
|
||||
print(FileObjectItem.GetURI())
|
||||
print('****************\n')
|
||||
|
||||
## GenPcdDeclaration
|
||||
#
|
||||
# @param ContainerFile: File name of the DEC file
|
||||
|
||||
Reference in New Issue
Block a user