Skip to content

Commit

Permalink
[processing]code cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed Sep 21, 2013
1 parent 2d60144 commit 865cb62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 1 addition & 4 deletions python/plugins/processing/algs/ftools/Buffer.py
Expand Up @@ -16,19 +16,16 @@
* *
***************************************************************************
"""
from processing.core.GeoAlgorithmExecutionException import GeoAlgorithmExecutionException

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


from PyQt4.QtCore import *
from qgis.core import *
from processing.tools import dataobjects, vector
from processing.core.ProcessingLog import ProcessingLog
from processing.tools import vector

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

Expand Down
4 changes: 1 addition & 3 deletions python/plugins/processing/tools/vector.py
Expand Up @@ -22,7 +22,6 @@
# This will get replaced with a git SHA1 when you do a git archive
__revision__ = '$Format:%H$'

from processing.tools import dataobjects
from processing.core.ProcessingConfig import ProcessingConfig
from qgis.core import *
from PyQt4.QtCore import *
Expand All @@ -37,8 +36,7 @@ class Features():
def __init__(self, layer):
self.layer = layer
self.iter = layer.getFeatures()
self.selection = False;
##self.layer.dataProvider().rewind()
self.selection = False;
if ProcessingConfig.getSetting(ProcessingConfig.USE_SELECTED):
self.selected = layer.selectedFeatures()
if len(self.selected) > 0:
Expand Down

0 comments on commit 865cb62

Please sign in to comment.