Skip to content

Commit

Permalink
Merge pull request #15691 from Expensify/yuwen-removeDeprecatedAPIMet…
Browse files Browse the repository at this point in the history
…hods

[No QA] Remove two more DeprecatedAPI methods that are no longer used
  • Loading branch information
madmax330 authored Mar 7, 2023
2 parents 4905cd5 + 97f2706 commit 18f98b3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
1 change: 0 additions & 1 deletion src/libs/Network/enhanceParameters.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ function isAuthTokenRequired(command) {
'Authenticate',
'BeginSignIn',
'SetPassword',
'ResendValidateCode',
], command);
}

Expand Down
25 changes: 0 additions & 25 deletions src/libs/deprecatedAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,29 +32,6 @@ function Get(parameters, shouldUseSecure = false) {
return Network.post(commandName, parameters, CONST.NETWORK.METHOD.POST, shouldUseSecure);
}

/**
* @param {Object} parameters
* @param {Object} parameters.details
* @returns {Promise}
*/
function PersonalDetails_Update(parameters) {
const commandName = 'PersonalDetails_Update';
requireParameters(['details'],
parameters, commandName);
return Network.post(commandName, parameters);
}

/**
* @param {Object} parameters
* @param {String} parameters.email
* @returns {Promise}
*/
function ResendValidateCode(parameters) {
const commandName = 'ResendValidateCode';
requireParameters(['email'], parameters, commandName);
return Network.post(commandName, parameters);
}

/**
* @param {Object} parameters
* @param {String} parameters.name
Expand All @@ -81,8 +58,6 @@ function User_SecondaryLogin_Send(parameters) {

export {
Get,
PersonalDetails_Update,
ResendValidateCode,
SetNameValuePair,
User_SecondaryLogin_Send,
};

0 comments on commit 18f98b3

Please sign in to comment.