From 2e2cb183a4b889a8f9f66aad6e02f1f93de4136a Mon Sep 17 00:00:00 2001 From: Chris Dent Date: Thu, 14 Mar 2019 12:29:34 +0000 Subject: [PATCH] Remove unused table constants from allocation_candiate.py The constants are not used in allocaion_candidate.py and are not referenced from elsewhere. The reason they ended up in there was because during the refactoring at [1] there was indecision about whether some methods should be in resource_provider.py or allocation_candidate.py. They ended up in resource_provider.py but the list of tables was not updated. [1] I6539d7db87bc24b03842e3d28a4296002b3549d5 Change-Id: I3d501543f7e79a8c3c030369af1398ca68f2b811 --- placement/objects/allocation_candidate.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/placement/objects/allocation_candidate.py b/placement/objects/allocation_candidate.py index ef06f5707..750e8493a 100644 --- a/placement/objects/allocation_candidate.py +++ b/placement/objects/allocation_candidate.py @@ -30,13 +30,9 @@ from placement.objects import trait as trait_obj from placement import resource_class_cache as rc_cache -_AGG_TBL = models.PlacementAggregate.__table__ _ALLOC_TBL = models.Allocation.__table__ _INV_TBL = models.Inventory.__table__ -_RP_AGG_TBL = models.ResourceProviderAggregate.__table__ _RP_TBL = models.ResourceProvider.__table__ -_RP_TRAIT_TBL = models.ResourceProviderTrait.__table__ -_TRAIT_TBL = models.Trait.__table__ LOG = logging.getLogger(__name__)