From 18011927b1b9083df1dae4a271cb2492c4438ab8 Mon Sep 17 00:00:00 2001 From: "Carsey, Jaben" Date: Sat, 28 Apr 2018 06:32:18 +0800 Subject: [PATCH] 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 Cc: Yonghong Zhu Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jaben Carsey Reviewed-by: Yonghong Zhu --- .../Python/AutoGen/ValidCheckingInfoObject.py | 17 ----------------- 1 file changed, 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 - -- 2.39.2