VariationModels: remove unused lowerBound/upperBound static methods
This commit is contained in:
parent
b9aa815d06
commit
d8152feb21
@ -252,18 +252,6 @@ class VariationModel(object):
|
|||||||
ret.axisPoints = axisPoints
|
ret.axisPoints = axisPoints
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
@staticmethod
|
|
||||||
def lowerBound(value, lst):
|
|
||||||
if any(v < value for v in lst):
|
|
||||||
return max(v for v in lst if v < value)
|
|
||||||
else:
|
|
||||||
return value
|
|
||||||
@staticmethod
|
|
||||||
def upperBound(value, lst):
|
|
||||||
if any(v > value for v in lst):
|
|
||||||
return min(v for v in lst if v > value)
|
|
||||||
else:
|
|
||||||
return value
|
|
||||||
def reorderMasters(self, master_list, mapping):
|
def reorderMasters(self, master_list, mapping):
|
||||||
# For changing the master data order without
|
# For changing the master data order without
|
||||||
# recomputing supports and deltaWeights.
|
# recomputing supports and deltaWeights.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user