summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/AutoGen/ValidCheckingInfoObject.py
diff options
context:
space:
mode:
authorCarsey, Jaben <jaben.carsey@intel.com>2018-04-28 06:32:18 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2018-05-04 13:02:59 +0800
commit18011927b1b9083df1dae4a271cb2492c4438ab8 (patch)
tree49d29c25dcdb4b5c581f2acf27115d3c645e8446 /BaseTools/Source/Python/AutoGen/ValidCheckingInfoObject.py
parentb7b51025b94f77130f355a2c7b00a0fbcf533b2d (diff)
downloadedk2-18011927b1b9083df1dae4a271cb2492c4438ab8.tar.gz
edk2-18011927b1b9083df1dae4a271cb2492c4438ab8.tar.bz2
edk2-18011927b1b9083df1dae4a271cb2492c4438ab8.zip
BaseTools: this function has no purpose.
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>
Diffstat (limited to 'BaseTools/Source/Python/AutoGen/ValidCheckingInfoObject.py')
-rw-r--r--BaseTools/Source/Python/AutoGen/ValidCheckingInfoObject.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/BaseTools/Source/Python/AutoGen/ValidCheckingInfoObject.py b/BaseTools/Source/Python/AutoGen/ValidCheckingInfoObject.py
index 1328dddf1a..dd78dc5200 100644
--- a/BaseTools/Source/Python/AutoGen/ValidCheckingInfoObject.py
+++ b/BaseTools/Source/Python/AutoGen/ValidCheckingInfoObject.py
@@ -324,20 +324,3 @@ class VAR_VALID_OBJECT_FACTORY(object):
return VAR_CHECK_PCD_VALID_LIST(VarOffset, PcdClass.validlists, PcdClass.DatumType)
else:
return None
-
-if __name__ == "__main__":
- class TestObj(object):
- def __init__(self, number1):
- self.number_1 = number1
- def __eq__(self, testobj):
- if self.number_1 == testobj.number_1:
- return True
- else:
- return False
- test1 = TestObj(1)
- test2 = TestObj(2)
-
- testarr = [test1, test2]
- print TestObj(2) in testarr
- print TestObj(2) == test2
-