Skip to content

Commit

Permalink
Merge branch 'jn/SDK-4770-Remove-setUploadLimit-Objective-C-bindings'…
Browse files Browse the repository at this point in the history
… into 'develop'

SDK-4770: Remove setUploadLimit Objective-C bindings

Closes SDK-4770

See merge request sdk/sdk!6169
  • Loading branch information
jnavarrom committed Jan 8, 2025
2 parents ecb4166 + 4c00c83 commit 666d5f4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
6 changes: 0 additions & 6 deletions bindings/ios/MEGASdk.mm
Original file line number Diff line number Diff line change
Expand Up @@ -2862,12 +2862,6 @@ - (BOOL)areTransferPausedForDirection:(NSInteger)direction {
return self.megaApi->areTransfersPaused((int)direction);
}

- (void)setUploadLimitWithBpsLimit:(NSInteger)bpsLimit {
if (self.megaApi) {
self.megaApi->setUploadLimit((int)bpsLimit);
}
}

- (void)requestBackgroundUploadURLWithFileSize:(int64_t)filesize mediaUpload:(MEGABackgroundMediaUpload *)mediaUpload delegate:(id<MEGARequestDelegate>)delegate {
if (self.megaApi) {
self.megaApi->backgroundMediaUploadRequestUploadURL(filesize, mediaUpload.getCPtr, [self createDelegateMEGARequestListener:delegate singleListener:YES queueType:ListenerQueueTypeCurrent]);
Expand Down
11 changes: 0 additions & 11 deletions bindings/ios/include/MEGASdk.h
Original file line number Diff line number Diff line change
Expand Up @@ -7475,17 +7475,6 @@ typedef NS_ENUM(NSInteger, ImportPasswordFileSource) {
*/
- (BOOL)areTransferPausedForDirection:(NSInteger)direction;

/**
* @brief Set the upload speed limit.
*
* The limit will be applied on the server side when starting a transfer. Thus the limit won't be
* applied for already started uploads and it's applied per storage server.
*
* @param bpsLimit -1 to automatically select the limit, 0 for no limit, otherwise the speed limit
* in bytes per second.
*/
- (void)setUploadLimitWithBpsLimit:(NSInteger)bpsLimit;

/**
* @brief Request the URL suitable for uploading a media file.
*
Expand Down

0 comments on commit 666d5f4

Please sign in to comment.