Skip to content
Permalink
Browse files

[processing] remove unused version() function

  • Loading branch information
alexbruy committed Jul 13, 2017
1 parent d3ad913 commit 69dab4278556f38f618c4ce070b8b391171a0a48
Showing with 0 additions and 8 deletions.
  1. +0 −8 python/plugins/processing/tools/general.py
@@ -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.
You can’t perform that action at this time.