Skip to content

Commit ee1236f

Browse files
committed
[processing] Remove unused options argument from (create/get)VectorWriter
1 parent 8e70aa8 commit ee1236f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

python/plugins/processing/core/outputs.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ def getCompatibleFileName(self, alg):
360360
self.compatible = getTempFilenameInTempFolder(self.name + '.' + ext)
361361
return self.compatible
362362

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

387-
w, w_dest, w_layer = createVectorWriter(self.value, self.encoding, fields, geomType, crs, context, options)
387+
w, w_dest, w_layer = createVectorWriter(self.value, self.encoding, fields, geomType, crs, context)
388388
self.layer = w_layer
389389
self.value = w_dest
390390
return w

python/plugins/processing/tools/vector.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ def ogrLayerName(uri):
456456
]
457457

458458

459-
def createVectorWriter(destination, encoding, fields, geometryType, crs, context, options=None):
459+
def createVectorWriter(destination, encoding, fields, geometryType, crs, context):
460460
layer = None
461461
sink = None
462462

0 commit comments

Comments
 (0)