Skip to content

Commit

Permalink
remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
luipir committed Aug 28, 2018
1 parent 6a2934c commit d3144b9
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions python/plugins/processing/algs/qgis/RasterCalculator.py
Expand Up @@ -79,24 +79,6 @@ def type(self):
def clone(self):
return ParameterRasterCalculatorExpression(self.name(), self.description(), self.multiLine())

# TODO: remove this unused method?
def evaluateForModeler(self, value, model):
for i in list(model.inputs.values()):
param = i.param
if isinstance(param, QgsProcessingParameterRasterLayer):
new = "{}@".format(os.path.basename(param.value))
old = "{}@".format(param.name())
value = value.replace(old, new)

for alg in list(model.algs.values()):
for out in alg.algorithm.outputs:
if isinstance(out, QgsProcessingOutputRasterLayer):
if out.value:
new = "{}@".format(os.path.basename(out.value))
old = "{}:{}@".format(alg.modeler_name, out.name)
value = value.replace(old, new)
return value

self.addParameter(ParameterRasterCalculatorExpression(self.EXPRESSION, self.tr('Expression'),
multiLine=True))
self.addParameter(QgsProcessingParameterMultipleLayers(self.LAYERS,
Expand Down

0 comments on commit d3144b9

Please sign in to comment.