From 97f2706a10c1b4351ba151798e2a021def73ee7e Mon Sep 17 00:00:00 2001 From: Yuwen Memon Date: Mon, 6 Mar 2023 11:38:41 -0800 Subject: [PATCH] Remove two more DeprecatedAPI methods that are no longer used --- src/libs/Network/enhanceParameters.js | 1 - src/libs/deprecatedAPI.js | 25 ------------------------- 2 files changed, 26 deletions(-) diff --git a/src/libs/Network/enhanceParameters.js b/src/libs/Network/enhanceParameters.js index 11c58a7e8152..2a2f981db718 100644 --- a/src/libs/Network/enhanceParameters.js +++ b/src/libs/Network/enhanceParameters.js @@ -16,7 +16,6 @@ function isAuthTokenRequired(command) { 'Authenticate', 'BeginSignIn', 'SetPassword', - 'ResendValidateCode', ], command); } diff --git a/src/libs/deprecatedAPI.js b/src/libs/deprecatedAPI.js index 64e1a6c92725..0af35bb404f5 100644 --- a/src/libs/deprecatedAPI.js +++ b/src/libs/deprecatedAPI.js @@ -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 @@ -81,8 +58,6 @@ function User_SecondaryLogin_Send(parameters) { export { Get, - PersonalDetails_Update, - ResendValidateCode, SetNameValuePair, User_SecondaryLogin_Send, };