[edk2] [PATCH v1 06/10] BaseTools: Eot remove unused code

Jaben Carsey posted 10 patches 6 years, 7 months ago
[edk2] [PATCH v1 06/10] BaseTools: Eot remove unused code
Posted by Jaben Carsey 6 years, 7 months ago
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>
---
 BaseTools/Source/Python/Eot/FvImage.py | 21 --------------------
 1 file changed, 21 deletions(-)

diff --git a/BaseTools/Source/Python/Eot/FvImage.py b/BaseTools/Source/Python/Eot/FvImage.py
index affca4e71e8a..472ae400506d 100644
--- a/BaseTools/Source/Python/Eot/FvImage.py
+++ b/BaseTools/Source/Python/Eot/FvImage.py
@@ -138,7 +138,6 @@ class FirmwareVolume(Image):
         self.FfsDict = sdict()
         self.OrderedFfsDict = sdict()
         self.UnDispatchedFfsDict = sdict()
-        self.NoDepexFfsDict = sdict()
         self.ProtocolList = sdict()
 
     def CheckArchProtocol(self):
@@ -284,26 +283,6 @@ class FirmwareVolume(Image):
 
         self.DisPatchDxe(Db)
 
-    def DisPatchNoDepexFfs(self, Db):
-        # Last Load Drivers without Depex
-        for FfsID in self.NoDepexFfsDict:
-            NewFfs = self.NoDepexFfsDict.pop(FfsID)
-            self.OrderedFfsDict[FfsID] = NewFfs
-            self.LoadProtocol(Db, FfsID)
-
-        return True
-
-    def LoadCallbackProtocol(self):
-        IsLoad = True
-        for Protocol in self.ProtocolList:
-            for Callback in self.ProtocolList[Protocol][1]:
-                if Callback[0] not in self.OrderedFfsDict.keys():
-                    IsLoad = False
-                    continue
-            if IsLoad:
-                EotGlobalData.gProtocolList[Protocol.lower()] = self.ProtocolList[Protocol][0]
-                self.ProtocolList.pop(Protocol)
-
     def LoadProtocol(self, Db, ModuleGuid):
         SqlCommand = """select GuidValue from Report
                         where SourceFileFullPath in
-- 
2.16.2.windows.1

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel