Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove a bunch of unneeded imports
  • Loading branch information
nyalldawson committed May 2, 2017
1 parent 4ed18b1 commit 877775d
Show file tree
Hide file tree
Showing 127 changed files with 67 additions and 145 deletions.
Expand Up @@ -30,7 +30,7 @@
from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.parameters import ParameterVector
from processing.core.outputs import OutputVector
from processing.tools import dataobjects, vector
from processing.tools import dataobjects


class ExampleAlgorithm(GeoAlgorithm):
Expand Down
1 change: 0 additions & 1 deletion python/plugins/processing/algs/qgis/AddTableField.py
Expand Up @@ -36,7 +36,6 @@
from processing.core.parameters import ParameterNumber
from processing.core.parameters import ParameterSelection
from processing.core.outputs import OutputVector
from processing.tools import dataobjects, vector


class AddTableField(GeoAlgorithm):
Expand Down
Expand Up @@ -33,7 +33,6 @@
from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.parameters import ParameterVector
from processing.core.outputs import OutputVector
from processing.tools import dataobjects, vector


class AutoincrementalField(GeoAlgorithm):
Expand Down
1 change: 0 additions & 1 deletion python/plugins/processing/algs/qgis/BarPlot.py
Expand Up @@ -36,7 +36,6 @@
from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.outputs import OutputHTML
from processing.tools import vector
from processing.tools import dataobjects


class BarPlot(GeoAlgorithm):
Expand Down
1 change: 0 additions & 1 deletion python/plugins/processing/algs/qgis/BasicStatistics.py
Expand Up @@ -42,7 +42,6 @@
from processing.core.parameters import ParameterTableField
from processing.core.outputs import OutputHTML
from processing.core.outputs import OutputNumber
from processing.tools import dataobjects, vector

pluginPath = os.path.split(os.path.split(os.path.dirname(__file__))[0])[0]

Expand Down
Expand Up @@ -41,7 +41,6 @@
from processing.core.parameters import ParameterTableField
from processing.core.outputs import OutputHTML
from processing.core.outputs import OutputNumber
from processing.tools import dataobjects, vector

pluginPath = os.path.split(os.path.split(os.path.dirname(__file__))[0])[0]

Expand Down
Expand Up @@ -41,7 +41,6 @@
from processing.core.parameters import ParameterTableField
from processing.core.outputs import OutputHTML
from processing.core.outputs import OutputNumber
from processing.tools import dataobjects, vector

pluginPath = os.path.split(os.path.split(os.path.dirname(__file__))[0])[0]

Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/qgis/Boundary.py
Expand Up @@ -35,7 +35,7 @@
from processing.core.GeoAlgorithmExecutionException import GeoAlgorithmExecutionException
from processing.core.parameters import ParameterVector
from processing.core.outputs import OutputVector
from processing.tools import dataobjects, vector
from processing.tools import dataobjects

pluginPath = os.path.split(os.path.split(os.path.dirname(__file__))[0])[0]

Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/qgis/BoundingBox.py
Expand Up @@ -35,7 +35,7 @@
from processing.core.GeoAlgorithmExecutionException import GeoAlgorithmExecutionException
from processing.core.parameters import ParameterVector
from processing.core.outputs import OutputVector
from processing.tools import dataobjects, vector
from processing.tools import dataobjects

pluginPath = os.path.split(os.path.split(os.path.dirname(__file__))[0])[0]

Expand Down
1 change: 0 additions & 1 deletion python/plugins/processing/algs/qgis/BoxPlot.py
Expand Up @@ -36,7 +36,6 @@
from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.outputs import OutputHTML
from processing.tools import vector
from processing.tools import dataobjects


class BoxPlot(GeoAlgorithm):
Expand Down
2 changes: 0 additions & 2 deletions python/plugins/processing/algs/qgis/Buffer.py
Expand Up @@ -27,8 +27,6 @@

from qgis.core import QgsFeature, QgsGeometry, QgsProcessingUtils

from processing.tools import vector


def buffering(feedback, context, writer, distance, field, useField, layer, dissolve, segments, endCapStyle=1,
joinStyle=1, mitreLimit=2):
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/qgis/Centroids.py
Expand Up @@ -36,7 +36,7 @@
from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.parameters import ParameterVector
from processing.core.outputs import OutputVector
from processing.tools import dataobjects, vector
from processing.tools import dataobjects

pluginPath = os.path.split(os.path.split(os.path.dirname(__file__))[0])[0]

Expand Down
1 change: 0 additions & 1 deletion python/plugins/processing/algs/qgis/CheckValidity.py
Expand Up @@ -35,7 +35,6 @@
from processing.core.parameters import ParameterVector
from processing.core.parameters import ParameterSelection
from processing.core.outputs import OutputVector
from processing.tools import dataobjects, vector

settings_method_key = "/qgis/digitizing/validate_geometries"
pluginPath = os.path.split(os.path.split(os.path.dirname(__file__))[0])[0]
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/qgis/Clip.py
Expand Up @@ -39,7 +39,7 @@
from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.parameters import ParameterVector
from processing.core.outputs import OutputVector
from processing.tools import dataobjects, vector
from processing.tools import dataobjects

pluginPath = os.path.split(os.path.split(os.path.dirname(__file__))[0])[0]

Expand Down
2 changes: 0 additions & 2 deletions python/plugins/processing/algs/qgis/CreateAttributeIndex.py
Expand Up @@ -35,8 +35,6 @@
from processing.core.parameters import ParameterTableField
from processing.core.outputs import OutputVector

from processing.tools import dataobjects


class CreateAttributeIndex(GeoAlgorithm):

Expand Down
Expand Up @@ -34,7 +34,6 @@
from processing.core.parameters import ParameterNumber
from processing.core.outputs import OutputRaster
from processing.tools.raster import RasterWriter
from processing.tools import dataobjects


class CreateConstantRaster(GeoAlgorithm):
Expand Down
2 changes: 0 additions & 2 deletions python/plugins/processing/algs/qgis/DefineProjection.py
Expand Up @@ -38,8 +38,6 @@
from processing.core.parameters import ParameterCrs
from processing.core.outputs import OutputVector

from processing.tools import dataobjects

pluginPath = os.path.split(os.path.split(os.path.dirname(__file__))[0])[0]


Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/qgis/Delaunay.py
Expand Up @@ -37,7 +37,7 @@
from processing.core.GeoAlgorithmExecutionException import GeoAlgorithmExecutionException
from processing.core.parameters import ParameterVector
from processing.core.outputs import OutputVector
from processing.tools import dataobjects, vector
from processing.tools import dataobjects

from . import voronoi

Expand Down
1 change: 0 additions & 1 deletion python/plugins/processing/algs/qgis/DeleteColumn.py
Expand Up @@ -31,7 +31,6 @@
from processing.core.parameters import ParameterVector
from processing.core.parameters import ParameterTableField
from processing.core.outputs import OutputVector
from processing.tools import dataobjects, vector


class DeleteColumn(GeoAlgorithm):
Expand Down
Expand Up @@ -31,7 +31,6 @@
from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.parameters import ParameterVector
from processing.core.outputs import OutputVector
from processing.tools import dataobjects, vector


class DeleteDuplicateGeometries(GeoAlgorithm):
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/qgis/DeleteHoles.py
Expand Up @@ -30,7 +30,7 @@
from processing.core.parameters import (ParameterVector,
ParameterNumber)
from processing.core.outputs import OutputVector
from processing.tools import dataobjects, vector
from processing.tools import dataobjects


class DeleteHoles(GeoAlgorithm):
Expand Down
6 changes: 2 additions & 4 deletions python/plugins/processing/algs/qgis/DensifyGeometries.py
Expand Up @@ -28,17 +28,15 @@

import os

from qgis.core import (QgsGeometry,
QgsPoint,
QgsWkbTypes,
from qgis.core import (QgsWkbTypes,
QgsApplication,
QgsProcessingUtils)

from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.parameters import ParameterVector
from processing.core.parameters import ParameterNumber
from processing.core.outputs import OutputVector
from processing.tools import dataobjects, vector
from processing.tools import dataobjects

pluginPath = os.path.split(os.path.split(os.path.dirname(__file__))[0])[0]

Expand Down
Expand Up @@ -29,17 +29,15 @@

from math import sqrt

from qgis.core import (QgsPoint,
QgsGeometry,
QgsWkbTypes,
from qgis.core import (QgsWkbTypes,
QgsApplication,
QgsProcessingUtils)

from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.parameters import ParameterVector
from processing.core.parameters import ParameterNumber
from processing.core.outputs import OutputVector
from processing.tools import dataobjects, vector
from processing.tools import dataobjects


class DensifyGeometriesInterval(GeoAlgorithm):
Expand Down
1 change: 0 additions & 1 deletion python/plugins/processing/algs/qgis/Difference.py
Expand Up @@ -38,7 +38,6 @@
from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.parameters import ParameterVector
from processing.core.outputs import OutputVector
from processing.tools import dataobjects, vector

pluginPath = os.path.split(os.path.split(os.path.dirname(__file__))[0])[0]

Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/qgis/Dissolve.py
Expand Up @@ -41,7 +41,7 @@
from processing.core.parameters import ParameterBoolean
from processing.core.parameters import ParameterTableField
from processing.core.outputs import OutputVector
from processing.tools import vector, dataobjects
from processing.tools import dataobjects

pluginPath = os.path.split(os.path.split(os.path.dirname(__file__))[0])[0]

Expand Down