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>
This commit is contained in:
Carsey, Jaben 2018-04-28 06:32:18 +08:00 committed by Yonghong Zhu
parent b7b51025b9
commit 18011927b1
1 changed files with 0 additions and 17 deletions

View File

@ -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