mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-31 01:24:12 +02:00
BaseTools: cleanup class heirarchy
remove totally empty classes from class heirarchy Cc: Liming Gao <liming.gao@intel.com> Cc: Yonghong Zhu <yonghong.zhu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jaben Carsey <jaben.carsey@intel.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
This commit is contained in:
parent
5fbb0f9908
commit
0b560b980c
@ -48,21 +48,10 @@ Section = {TAB_UNKNOWN.upper() : MODEL_UNKNOWN,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
## DecObject
|
|
||||||
#
|
|
||||||
# This class defined basic Dec object which is used by inheriting
|
|
||||||
#
|
|
||||||
# @param object: Inherited from object class
|
|
||||||
#
|
|
||||||
class DecObject(object):
|
|
||||||
def __init__(self):
|
|
||||||
object.__init__()
|
|
||||||
|
|
||||||
## Dec
|
## Dec
|
||||||
#
|
#
|
||||||
# This class defined the structure used in Dec object
|
# This class defined the structure used in Dec object
|
||||||
#
|
#
|
||||||
# @param DecObject: Inherited from DecObject class
|
|
||||||
# @param Filename: Input value for Filename of Dec file, default is None
|
# @param Filename: Input value for Filename of Dec file, default is None
|
||||||
# @param IsMergeAllArches: Input value for IsMergeAllArches
|
# @param IsMergeAllArches: Input value for IsMergeAllArches
|
||||||
# True is to merge all arches
|
# True is to merge all arches
|
||||||
@ -82,7 +71,7 @@ class DecObject(object):
|
|||||||
# @var Contents: To store value for Contents, it is a structure as DecContents
|
# @var Contents: To store value for Contents, it is a structure as DecContents
|
||||||
# @var KeyList: To store value for KeyList, a list for all Keys used in Dec
|
# @var KeyList: To store value for KeyList, a list for all Keys used in Dec
|
||||||
#
|
#
|
||||||
class Dec(DecObject):
|
class Dec(object):
|
||||||
def __init__(self, Filename=None, IsToDatabase=False, IsToPackage=False, WorkspaceDir=None, Database=None, SupArchList=DataType.ARCH_LIST):
|
def __init__(self, Filename=None, IsToDatabase=False, IsToPackage=False, WorkspaceDir=None, Database=None, SupArchList=DataType.ARCH_LIST):
|
||||||
self.Identification = Identification()
|
self.Identification = Identification()
|
||||||
self.Package = PackageClass()
|
self.Package = PackageClass()
|
||||||
|
@ -54,21 +54,10 @@ Section = {TAB_UNKNOWN.upper() : MODEL_UNKNOWN,
|
|||||||
TAB_USER_EXTENSIONS.upper() : MODEL_META_DATA_USER_EXTENSION
|
TAB_USER_EXTENSIONS.upper() : MODEL_META_DATA_USER_EXTENSION
|
||||||
}
|
}
|
||||||
|
|
||||||
## DscObject
|
|
||||||
#
|
|
||||||
# This class defined basic Dsc object which is used by inheriting
|
|
||||||
#
|
|
||||||
# @param object: Inherited from object class
|
|
||||||
#
|
|
||||||
class DscObject(object):
|
|
||||||
def __init__(self):
|
|
||||||
object.__init__()
|
|
||||||
|
|
||||||
## Dsc
|
## Dsc
|
||||||
#
|
#
|
||||||
# This class defined the structure used in Dsc object
|
# This class defined the structure used in Dsc object
|
||||||
#
|
#
|
||||||
# @param DscObject: Inherited from InfObject class
|
|
||||||
# @param Ffilename: Input value for Ffilename of Inf file, default is None
|
# @param Ffilename: Input value for Ffilename of Inf file, default is None
|
||||||
# @param IsMergeAllArches: Input value for IsMergeAllArches
|
# @param IsMergeAllArches: Input value for IsMergeAllArches
|
||||||
# True is to merge all arches
|
# True is to merge all arches
|
||||||
@ -89,7 +78,7 @@ class DscObject(object):
|
|||||||
# @var WorkspaceDir: To store value for WorkspaceDir
|
# @var WorkspaceDir: To store value for WorkspaceDir
|
||||||
# @var KeyList: To store value for KeyList, a list for all Keys used in Dec
|
# @var KeyList: To store value for KeyList, a list for all Keys used in Dec
|
||||||
#
|
#
|
||||||
class Dsc(DscObject):
|
class Dsc(object):
|
||||||
_NullClassIndex = 0
|
_NullClassIndex = 0
|
||||||
|
|
||||||
def __init__(self, Filename=None, IsToDatabase=False, IsToPlatform=False, WorkspaceDir=None, Database=None):
|
def __init__(self, Filename=None, IsToDatabase=False, IsToPlatform=False, WorkspaceDir=None, Database=None):
|
||||||
|
@ -19,25 +19,15 @@ from Table.TableFdf import TableFdf
|
|||||||
from CommonDataClass.DataClass import MODEL_FILE_FDF, MODEL_PCD, MODEL_META_DATA_COMPONENT
|
from CommonDataClass.DataClass import MODEL_FILE_FDF, MODEL_PCD, MODEL_META_DATA_COMPONENT
|
||||||
from String import NormPath
|
from String import NormPath
|
||||||
|
|
||||||
## FdfObject
|
|
||||||
#
|
|
||||||
# This class defined basic Fdf object which is used by inheriting
|
|
||||||
#
|
|
||||||
# @param object: Inherited from object class
|
|
||||||
#
|
|
||||||
class FdfObject(object):
|
|
||||||
def __init__(self):
|
|
||||||
object.__init__()
|
|
||||||
|
|
||||||
## Fdf
|
## Fdf
|
||||||
#
|
#
|
||||||
# This class defined the structure used in Fdf object
|
# This class defined the structure used in Fdf object
|
||||||
#
|
#
|
||||||
# @param FdfObject: Inherited from FdfObject class
|
|
||||||
# @param Filename: Input value for Ffilename of Fdf file, default is None
|
# @param Filename: Input value for Ffilename of Fdf file, default is None
|
||||||
# @param WorkspaceDir: Input value for current workspace directory, default is None
|
# @param WorkspaceDir: Input value for current workspace directory, default is None
|
||||||
#
|
#
|
||||||
class Fdf(FdfObject):
|
class Fdf(object):
|
||||||
def __init__(self, Filename = None, IsToDatabase = False, WorkspaceDir = None, Database = None):
|
def __init__(self, Filename = None, IsToDatabase = False, WorkspaceDir = None, Database = None):
|
||||||
self.WorkspaceDir = WorkspaceDir
|
self.WorkspaceDir = WorkspaceDir
|
||||||
self.IsToDatabase = IsToDatabase
|
self.IsToDatabase = IsToDatabase
|
||||||
|
@ -131,21 +131,10 @@ class InfHeader(ModuleHeaderClass):
|
|||||||
def __contains__(self, key):
|
def __contains__(self, key):
|
||||||
return key in self._Mapping_
|
return key in self._Mapping_
|
||||||
|
|
||||||
## InfObject
|
|
||||||
#
|
|
||||||
# This class defined basic Inf object which is used by inheriting
|
|
||||||
#
|
|
||||||
# @param object: Inherited from object class
|
|
||||||
#
|
|
||||||
class InfObject(object):
|
|
||||||
def __init__(self):
|
|
||||||
object.__init__()
|
|
||||||
|
|
||||||
## Inf
|
## Inf
|
||||||
#
|
#
|
||||||
# This class defined the structure used in Inf object
|
# This class defined the structure used in Inf object
|
||||||
#
|
#
|
||||||
# @param InfObject: Inherited from InfObject class
|
|
||||||
# @param Ffilename: Input value for Ffilename of Inf file, default is None
|
# @param Ffilename: Input value for Ffilename of Inf file, default is None
|
||||||
# @param IsMergeAllArches: Input value for IsMergeAllArches
|
# @param IsMergeAllArches: Input value for IsMergeAllArches
|
||||||
# True is to merge all arches
|
# True is to merge all arches
|
||||||
@ -163,7 +152,7 @@ class InfObject(object):
|
|||||||
# @var WorkspaceDir: To store value for WorkspaceDir
|
# @var WorkspaceDir: To store value for WorkspaceDir
|
||||||
# @var KeyList: To store value for KeyList, a list for all Keys used in Inf
|
# @var KeyList: To store value for KeyList, a list for all Keys used in Inf
|
||||||
#
|
#
|
||||||
class Inf(InfObject):
|
class Inf(object):
|
||||||
def __init__(self, Filename=None, IsToDatabase=False, IsToModule=False, WorkspaceDir=None, Database=None, SupArchList=DataType.ARCH_LIST):
|
def __init__(self, Filename=None, IsToDatabase=False, IsToModule=False, WorkspaceDir=None, Database=None, SupArchList=DataType.ARCH_LIST):
|
||||||
self.Identification = Identification()
|
self.Identification = Identification()
|
||||||
self.Module = ModuleClass()
|
self.Module = ModuleClass()
|
||||||
|
@ -1900,25 +1900,14 @@ class DecParser(MetaFileParser):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
## FdfObject
|
|
||||||
#
|
|
||||||
# This class defined basic Fdf object which is used by inheriting
|
|
||||||
#
|
|
||||||
# @param object: Inherited from object class
|
|
||||||
#
|
|
||||||
class FdfObject(object):
|
|
||||||
def __init__(self):
|
|
||||||
object.__init__()
|
|
||||||
|
|
||||||
## Fdf
|
## Fdf
|
||||||
#
|
#
|
||||||
# This class defined the structure used in Fdf object
|
# This class defined the structure used in Fdf object
|
||||||
#
|
#
|
||||||
# @param FdfObject: Inherited from FdfObject class
|
|
||||||
# @param Filename: Input value for Ffilename of Fdf file, default is None
|
# @param Filename: Input value for Ffilename of Fdf file, default is None
|
||||||
# @param WorkspaceDir: Input value for current workspace directory, default is None
|
# @param WorkspaceDir: Input value for current workspace directory, default is None
|
||||||
#
|
#
|
||||||
class Fdf(FdfObject):
|
class Fdf(object):
|
||||||
def __init__(self, Filename = None, IsToDatabase = False, WorkspaceDir = None, Database = None):
|
def __init__(self, Filename = None, IsToDatabase = False, WorkspaceDir = None, Database = None):
|
||||||
self.WorkspaceDir = WorkspaceDir
|
self.WorkspaceDir = WorkspaceDir
|
||||||
self.IsToDatabase = IsToDatabase
|
self.IsToDatabase = IsToDatabase
|
||||||
|
Loading…
x
Reference in New Issue
Block a user