From c4a287f4dde9826f02cccdf2a4200adf4360de50 Mon Sep 17 00:00:00 2001 From: Sai Sankeerth Date: Thu, 14 Sep 2023 16:40:20 +0530 Subject: [PATCH] fix: remove unused code --- src/v0/destinations/campaign_manager/networkHandler.js | 4 ---- .../google_adwords_enhanced_conversions/transform.js | 1 - .../destinations/google_adwords_offline_conversions/utils.js | 1 - src/v0/destinations/pardot/transform.js | 1 - .../destinations/snapchat_custom_audience/networkHandler.js | 1 - 5 files changed, 8 deletions(-) diff --git a/src/v0/destinations/campaign_manager/networkHandler.js b/src/v0/destinations/campaign_manager/networkHandler.js index 7d4f401dc0..a80fff6fe4 100644 --- a/src/v0/destinations/campaign_manager/networkHandler.js +++ b/src/v0/destinations/campaign_manager/networkHandler.js @@ -1,9 +1,5 @@ const { prepareProxyRequest, proxyRequest } = require('../../../adapters/network'); const { isHttpStatusSuccess, getAuthErrCategoryFromStCode } = require('../../util/index'); -const { - REFRESH_TOKEN, - AUTH_STATUS_INACTIVE, -} = require('../../../adapters/networkhandler/authConstants'); const { processAxiosResponse, diff --git a/src/v0/destinations/google_adwords_enhanced_conversions/transform.js b/src/v0/destinations/google_adwords_enhanced_conversions/transform.js index 350fe4032c..24993a3006 100644 --- a/src/v0/destinations/google_adwords_enhanced_conversions/transform.js +++ b/src/v0/destinations/google_adwords_enhanced_conversions/transform.js @@ -14,7 +14,6 @@ const { const { InstrumentationError, ConfigurationError, - OAuthSecretError, } = require('../../util/errorTypes'); const { trackMapping, BASE_ENDPOINT } = require('./config'); diff --git a/src/v0/destinations/google_adwords_offline_conversions/utils.js b/src/v0/destinations/google_adwords_offline_conversions/utils.js index 71d70632bb..37f17c9fd0 100644 --- a/src/v0/destinations/google_adwords_offline_conversions/utils.js +++ b/src/v0/destinations/google_adwords_offline_conversions/utils.js @@ -27,7 +27,6 @@ const { processAxiosResponse } = require('../../../adapters/utils/networkUtils') const Cache = require('../../util/cache'); const { AbortedError, - OAuthSecretError, ConfigurationError, InstrumentationError, } = require('../../util/errorTypes'); diff --git a/src/v0/destinations/pardot/transform.js b/src/v0/destinations/pardot/transform.js index b166416a5d..b9f78a6c34 100644 --- a/src/v0/destinations/pardot/transform.js +++ b/src/v0/destinations/pardot/transform.js @@ -49,7 +49,6 @@ const { } = require('../../util'); const { CONFIG_CATEGORIES } = require('./config'); const { - OAuthSecretError, ConfigurationError, InstrumentationError, } = require('../../util/errorTypes'); diff --git a/src/v0/destinations/snapchat_custom_audience/networkHandler.js b/src/v0/destinations/snapchat_custom_audience/networkHandler.js index 29018ee4b9..49ea452550 100644 --- a/src/v0/destinations/snapchat_custom_audience/networkHandler.js +++ b/src/v0/destinations/snapchat_custom_audience/networkHandler.js @@ -3,7 +3,6 @@ const { prepareProxyRequest, getPayloadData, httpSend } = require('../../../adap const { isHttpStatusSuccess } = require('../../util/index'); const { REFRESH_TOKEN, - AUTH_STATUS_INACTIVE, } = require('../../../adapters/networkhandler/authConstants'); const tags = require('../../util/tags'); const {