Rip out all references to the unused IProgress API.

This commit is contained in:
Itamar Turner-Trauring
2021-03-31 10:35:25 -04:00
parent 69ece36509
commit 0d0dd4dee9
13 changed files with 39 additions and 146 deletions

View File

@ -646,7 +646,7 @@ class DirectoryNode(object):
return d
def add_file(self, namex, uploadable, metadata=None, overwrite=True, progress=None):
def add_file(self, namex, uploadable, metadata=None, overwrite=True):
"""I upload a file (using the given IUploadable), then attach the
resulting FileNode to the directory at the given name. I return a
Deferred that fires (with the IFileNode of the uploaded file) when
@ -657,7 +657,7 @@ class DirectoryNode(object):
d = DeferredContext(defer.fail(NotWriteableError()))
else:
# XXX should pass reactor arg
d = DeferredContext(self._uploader.upload(uploadable, progress=progress))
d = DeferredContext(self._uploader.upload(uploadable))
d.addCallback(lambda results:
self._create_and_validate_node(results.get_uri(), None,
name))