Skip to content

Commit

Permalink
[processing] Remove unused options argument from (create/get)VectorWr…
Browse files Browse the repository at this point in the history
…iter
  • Loading branch information
nyalldawson committed May 2, 2017
1 parent 8e70aa8 commit ee1236f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions python/plugins/processing/core/outputs.py
Expand Up @@ -360,7 +360,7 @@ def getCompatibleFileName(self, alg):
self.compatible = getTempFilenameInTempFolder(self.name + '.' + ext)
return self.compatible

def getVectorWriter(self, fields, geomType, crs, context, options=None):
def getVectorWriter(self, fields, geomType, crs, context):
"""Returns a suitable writer to which features can be added as
a result of the algorithm. Use this to transparently handle
output values instead of creating your own method.
Expand All @@ -384,7 +384,7 @@ def getVectorWriter(self, fields, geomType, crs, context, options=None):
settings = QgsSettings()
self.encoding = settings.value('/Processing/encoding', 'System', str)

w, w_dest, w_layer = createVectorWriter(self.value, self.encoding, fields, geomType, crs, context, options)
w, w_dest, w_layer = createVectorWriter(self.value, self.encoding, fields, geomType, crs, context)
self.layer = w_layer
self.value = w_dest
return w
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/tools/vector.py
Expand Up @@ -456,7 +456,7 @@ def ogrLayerName(uri):
]


def createVectorWriter(destination, encoding, fields, geometryType, crs, context, options=None):
def createVectorWriter(destination, encoding, fields, geometryType, crs, context):
layer = None
sink = None

Expand Down

0 comments on commit ee1236f

Please sign in to comment.