Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[processing] remove unused version() function
  • Loading branch information
alexbruy committed Jul 13, 2017
1 parent d3ad913 commit 69dab42
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions python/plugins/processing/tools/general.py
Expand Up @@ -113,11 +113,3 @@ def runAndLoadResults(algOrName, parameters, feedback=None, context=None):
parameters[param.name()] = p

return Processing.runAlgorithm(alg, parameters=parameters, onFinish=handleAlgorithmResults, feedback=feedback, context=context)


def version():
pluginPath = os.path.split(os.path.dirname(__file__))[0]
cfg = configparser.ConfigParser()
cfg.read(os.path.join(pluginPath, 'metadata.txt'))
ver = cfg.get('general', 'version').split('.')
return 10000 * int(ver[0]) + 100 * int(ver[1]) + int(ver[2])

0 comments on commit 69dab42

Please sign in to comment.