Removed the test of a key of tdict since it doesn't support this operation and will...
authorjwang36 <jwang36@7335b38e-4728-0410-8992-fb3ffe349368>
Thu, 7 Aug 2008 07:59:02 +0000 (07:59 +0000)
committerjwang36 <jwang36@7335b38e-4728-0410-8992-fb3ffe349368>
Thu, 7 Aug 2008 07:59:02 +0000 (07:59 +0000)
git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1294 7335b38e-4728-0410-8992-fb3ffe349368

Source/Python/AutoGen/AutoGen.py

index b54810f..7a0a8e3 100755 (executable)
@@ -1029,9 +1029,7 @@ class PlatformAutoGen(AutoGen):
         while len(LibraryConsumerList) > 0:
             M = LibraryConsumerList.pop()
             for LibraryName in M.Libraries:
-                Library = None
-                if (LibraryName, ':dummy:') in self.Platform.LibraryClasses:
-                    Library = self.Platform.LibraryClasses[LibraryName, ':dummy:']
+                Library = self.Platform.LibraryClasses[LibraryName, ':dummy:']
                 if Library == None:
                     EdkLogger.warn("build", "Library [%s] is not found" % LibraryName, File=str(M),
                                     ExtraData="\t%s [%s]" % (str(Module), self.Arch))