]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: this function has no purpose.
authorCarsey, Jaben <jaben.carsey@intel.com>
Fri, 27 Apr 2018 22:32:18 +0000 (06:32 +0800)
committerYonghong Zhu <yonghong.zhu@intel.com>
Fri, 4 May 2018 05:02:59 +0000 (13:02 +0800)
it looks like a old POC of the concepts then used to make the classes
in the file.

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/AutoGen/ValidCheckingInfoObject.py

index 1328dddf1a10a3fad438298302b98ee80538f0af..dd78dc5200758a4603d435e7076e70d6c2174783 100644 (file)
@@ -324,20 +324,3 @@ class VAR_VALID_OBJECT_FACTORY(object):
             return VAR_CHECK_PCD_VALID_LIST(VarOffset, PcdClass.validlists, PcdClass.DatumType)\r
         else:\r
             return None\r
-\r
-if __name__ == "__main__":\r
-    class TestObj(object):\r
-        def __init__(self, number1):\r
-            self.number_1 = number1\r
-        def __eq__(self, testobj):\r
-            if self.number_1 == testobj.number_1:\r
-                return True\r
-            else:\r
-                return False\r
-    test1 = TestObj(1)\r
-    test2 = TestObj(2)\r
-    \r
-    testarr = [test1, test2]\r
-    print TestObj(2) in testarr\r
-    print TestObj(2) == test2\r
-    \r