Skip to content

Commit 865cb62

Browse files
committed
[processing]code cleaning
1 parent 2d60144 commit 865cb62

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,16 @@
1616
* *
1717
***************************************************************************
1818
"""
19-
from processing.core.GeoAlgorithmExecutionException import GeoAlgorithmExecutionException
2019

2120
__author__ = 'Victor Olaya'
2221
__date__ = 'August 2012'
2322
__copyright__ = '(C) 2012, Victor Olaya'
2423
# This will get replaced with a git SHA1 when you do a git archive
2524
__revision__ = '$Format:%H$'
2625

27-
2826
from PyQt4.QtCore import *
2927
from qgis.core import *
30-
from processing.tools import dataobjects, vector
31-
from processing.core.ProcessingLog import ProcessingLog
28+
from processing.tools import vector
3229

3330
def buffering(progress, writer, distance, field, useField, layer, dissolve, segments):
3431

python/plugins/processing/tools/vector.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
# This will get replaced with a git SHA1 when you do a git archive
2323
__revision__ = '$Format:%H$'
2424

25-
from processing.tools import dataobjects
2625
from processing.core.ProcessingConfig import ProcessingConfig
2726
from qgis.core import *
2827
from PyQt4.QtCore import *
@@ -37,8 +36,7 @@ class Features():
3736
def __init__(self, layer):
3837
self.layer = layer
3938
self.iter = layer.getFeatures()
40-
self.selection = False;
41-
##self.layer.dataProvider().rewind()
39+
self.selection = False;
4240
if ProcessingConfig.getSetting(ProcessingConfig.USE_SELECTED):
4341
self.selected = layer.selectedFeatures()
4442
if len(self.selected) > 0:

0 commit comments

Comments
 (0)