]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: Eot remove unused code
authorCarsey, Jaben </o=Intel/ou=Americas01/cn=Workers/cn=Carsey, Jaben>
Tue, 3 Apr 2018 21:03:06 +0000 (05:03 +0800)
committerYonghong Zhu <yonghong.zhu@intel.com>
Sun, 8 Apr 2018 06:50:16 +0000 (14:50 +0800)
2 functions and a dictionary that are not used.

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>
BaseTools/Source/Python/Eot/FvImage.py

index affca4e71e8aa00604d326b5a98ae24a5f3144d2..472ae400506d510a19cc42fa48896fda7aa503ec 100644 (file)
@@ -138,7 +138,6 @@ class FirmwareVolume(Image):
         self.FfsDict = sdict()\r
         self.OrderedFfsDict = sdict()\r
         self.UnDispatchedFfsDict = sdict()\r
-        self.NoDepexFfsDict = sdict()\r
         self.ProtocolList = sdict()\r
 \r
     def CheckArchProtocol(self):\r
@@ -284,26 +283,6 @@ class FirmwareVolume(Image):
 \r
         self.DisPatchDxe(Db)\r
 \r
-    def DisPatchNoDepexFfs(self, Db):\r
-        # Last Load Drivers without Depex\r
-        for FfsID in self.NoDepexFfsDict:\r
-            NewFfs = self.NoDepexFfsDict.pop(FfsID)\r
-            self.OrderedFfsDict[FfsID] = NewFfs\r
-            self.LoadProtocol(Db, FfsID)\r
-\r
-        return True\r
-\r
-    def LoadCallbackProtocol(self):\r
-        IsLoad = True\r
-        for Protocol in self.ProtocolList:\r
-            for Callback in self.ProtocolList[Protocol][1]:\r
-                if Callback[0] not in self.OrderedFfsDict.keys():\r
-                    IsLoad = False\r
-                    continue\r
-            if IsLoad:\r
-                EotGlobalData.gProtocolList[Protocol.lower()] = self.ProtocolList[Protocol][0]\r
-                self.ProtocolList.pop(Protocol)\r
-\r
     def LoadProtocol(self, Db, ModuleGuid):\r
         SqlCommand = """select GuidValue from Report\r
                         where SourceFileFullPath in\r