Skip to content

Commit

Permalink
Remove 2 methods that are no longer used in Deprecated API
Browse files Browse the repository at this point in the history
  • Loading branch information
yuwenmemon committed Feb 3, 2023
1 parent 5fb0c92 commit 4263391
Showing 1 changed file with 0 additions and 42 deletions.
42 changes: 0 additions & 42 deletions src/libs/deprecatedAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,46 +23,6 @@ Request.use(Middleware.Retry);
// SaveResponseInOnyx - Merges either the successData or failureData into Onyx depending on if the call was successful or not
Request.use(Middleware.SaveResponseInOnyx);

/**
* @param {Object} parameters
* @param {String} parameters.authToken
* @param {String} parameters.partnerName
* @param {String} parameters.partnerPassword
* @param {String} parameters.partnerUserID
* @param {String} parameters.partnerUserSecret
* @param {Boolean} [parameters.shouldRetry]
* @param {String} [parameters.email]
* @returns {Promise}
*/
function CreateLogin(parameters) {
const commandName = 'CreateLogin';
requireParameters([
'authToken',
'partnerName',
'partnerPassword',
'partnerUserID',
'partnerUserSecret',
], parameters, commandName);
return Network.post(commandName, parameters);
}

/**
* @param {Object} parameters
* @param {String} parameters.partnerUserID
* @param {String} parameters.partnerName
* @param {String} parameters.partnerPassword
* @param {Boolean} parameters.shouldRetry
* @returns {Promise}
*/
function DeleteLogin(parameters) {
const commandName = 'DeleteLogin';
requireParameters(['partnerUserID', 'partnerName', 'partnerPassword', 'shouldRetry'],
parameters, commandName);

// Non-cancellable request: during logout, when requests are cancelled, we don't want to cancel the actual logout request
return Network.post(commandName, {...parameters, canCancel: false});
}

/**
* @param {Object} parameters
* @param {String} parameters.returnValueList
Expand Down Expand Up @@ -123,8 +83,6 @@ function User_SecondaryLogin_Send(parameters) {
}

export {
CreateLogin,
DeleteLogin,
Get,
PersonalDetails_Update,
ResendValidateCode,
Expand Down

0 comments on commit 4263391

Please sign in to comment.