Skip to content

Commit 54a960f

Browse files
committed
[processing] some code cleaning
1 parent 062e76b commit 54a960f

File tree

11 files changed

+3
-42
lines changed

11 files changed

+3
-42
lines changed

python/plugins/processing/algs/ftools/ExtentFromLayer.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,11 @@
2424
__revision__ = '$Format:%H$'
2525

2626
from PyQt4.QtCore import *
27-
2827
from qgis.core import *
29-
3028
from processing.core.GeoAlgorithm import GeoAlgorithm
3129
from processing.tools import dataobjects, vector
32-
3330
from processing.parameters.ParameterVector import ParameterVector
3431
from processing.parameters.ParameterBoolean import ParameterBoolean
35-
3632
from processing.outputs.OutputVector import OutputVector
3733

3834
class ExtentFromLayer(GeoAlgorithm):

python/plugins/processing/algs/ftools/ExtractNodes.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,6 @@ class ExtractNodes(GeoAlgorithm):
3636
INPUT = "INPUT"
3737
OUTPUT = "OUTPUT"
3838

39-
#===========================================================================
40-
# def getIcon(self):
41-
# return QtGui.QIcon(os.path.dirname(__file__) + "/icons/extract_nodes.png")
42-
#===========================================================================
43-
4439
def defineCharacteristics(self):
4540
self.name = "Extract nodes"
4641
self.group = "Vector geometry tools"

python/plugins/processing/algs/ftools/FixedDistanceBuffer.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,13 @@
2424
__revision__ = '$Format:%H$'
2525

2626
from PyQt4.QtCore import *
27-
2827
from qgis.core import *
29-
3028
from processing.core.GeoAlgorithm import GeoAlgorithm
3129
from processing.tools import dataobjects
32-
3330
from processing.parameters.ParameterVector import ParameterVector
3431
from processing.parameters.ParameterBoolean import ParameterBoolean
3532
from processing.parameters.ParameterNumber import ParameterNumber
36-
3733
from processing.outputs.OutputVector import OutputVector
38-
3934
from processing.algs.ftools import Buffer as buff
4035

4136
class FixedDistanceBuffer(GeoAlgorithm):

python/plugins/processing/algs/ftools/Intersection.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,6 @@ class Intersection(GeoAlgorithm):
3838
INPUT2 = "INPUT2"
3939
OUTPUT = "OUTPUT"
4040

41-
#===========================================================================
42-
# def getIcon(self):
43-
# return QtGui.QIcon(os.path.dirname(__file__) + "/icons/intersect.png")
44-
#===========================================================================
45-
4641
def processAlgorithm(self, progress):
4742
vlayerA = dataobjects.getObjectFromUri(self.getParameterValue(Intersection.INPUT))
4843
vlayerB = dataobjects.getObjectFromUri(self.getParameterValue(Intersection.INPUT2))

python/plugins/processing/algs/ftools/LinesIntersection.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,6 @@ class LinesIntersection(GeoAlgorithm):
4141

4242
OUTPUT = "OUTPUT"
4343

44-
#===========================================================================
45-
# def getIcon(self):
46-
# return QtGui.QIcon(os.path.dirname(__file__) + "/icons/intersections.png")
47-
#===========================================================================
48-
4944
def defineCharacteristics(self):
5045
self.name = "Line intersections"
5146
self.group = "Vector overlay tools"

python/plugins/processing/algs/ftools/LinesToPolygons.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,6 @@ class LinesToPolygons(GeoAlgorithm):
3636
INPUT = "INPUT"
3737
OUTPUT = "OUTPUT"
3838

39-
#===========================================================================
40-
# def getIcon(self):
41-
# return QtGui.QIcon(os.path.dirname(__file__) + "/icons/to_lines.png")
42-
#===========================================================================
43-
4439
def defineCharacteristics(self):
4540
self.name = "Lines to polygons"
4641
self.group = "Vector geometry tools"

python/plugins/processing/algs/ftools/MeanCoords.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,6 @@ class MeanCoords(GeoAlgorithm):
4040
UID = "UID"
4141
WEIGHT = "WEIGHT"
4242

43-
#===========================================================================
44-
# def getIcon(self):
45-
# return QtGui.QIcon(os.path.dirname(__file__) + "/icons/mean.png")
46-
#===========================================================================
47-
4843
def defineCharacteristics(self):
4944
self.name = "Mean coordinate(s)"
5045
self.group = "Vector analysis tools"

python/plugins/processing/algs/ftools/MultipartToSingleparts.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,11 @@
2424
__revision__ = '$Format:%H$'
2525

2626
from PyQt4.QtCore import *
27-
2827
from qgis.core import *
29-
3028
from processing.core.GeoAlgorithm import GeoAlgorithm
3129
from processing.core.GeoAlgorithmExecutionException import GeoAlgorithmExecutionException
3230
from processing.tools import dataobjects, vector
33-
3431
from processing.parameters.ParameterVector import ParameterVector
35-
3632
from processing.outputs.OutputVector import OutputVector
3733

3834
class MultipartToSingleparts(GeoAlgorithm):

python/plugins/processing/gui/Postprocessing.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ def handleAlgorithmResults(alg, progress, showResults = True):
6262
dataobjects.load(out.value, name, alg.crs, RenderingStyles.getStyle(alg.commandLineName(),out.name))
6363
except Exception, e:
6464
wrongLayers.append(out)
65-
#QMessageBox.critical(None, "Error", str(e))
6665
elif isinstance(out, OutputHTML):
6766
ProcessingResults.addResult(out.description, out.value)
6867
htmlResults = True

python/plugins/processing/ui/DlgHistory.ui

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<rect>
77
<x>0</x>
88
<y>0</y>
9-
<width>532</width>
10-
<height>377</height>
9+
<width>800</width>
10+
<height>500</height>
1111
</rect>
1212
</property>
1313
<property name="windowTitle">

python/plugins/processing/ui/ui_DlgHistory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
class Ui_DlgHistory(object):
1818
def setupUi(self, DlgHistory):
1919
DlgHistory.setObjectName(_fromUtf8("DlgHistory"))
20-
DlgHistory.resize(532, 377)
20+
DlgHistory.resize(800, 500)
2121
self.verticalLayout = QtGui.QVBoxLayout(DlgHistory)
2222
self.verticalLayout.setSpacing(2)
2323
self.verticalLayout.setMargin(0)

0 commit comments

Comments
 (0)