From d15378fb61b0cf4896e15ee8ca60ae338a6bf96e Mon Sep 17 00:00:00 2001 From: nkomonen-amazon Date: Tue, 18 Feb 2025 21:52:27 -0500 Subject: [PATCH] refactor(cleanup): remove dead code Signed-off-by: nkomonen-amazon --- packages/core/src/auth/activation.ts | 31 ++-------------------------- 1 file changed, 2 insertions(+), 29 deletions(-) diff --git a/packages/core/src/auth/activation.ts b/packages/core/src/auth/activation.ts index ce1e53e7ed4..a7ee249ab97 100644 --- a/packages/core/src/auth/activation.ts +++ b/packages/core/src/auth/activation.ts @@ -7,11 +7,8 @@ import * as vscode from 'vscode' import { Auth } from './auth' import { LoginManager } from './deprecated/loginManager' import { fromString } from './providers/credentials' -import { getLogger } from '../shared/logger/logger' -import { ExtensionUse, initializeCredentialsProviderManager } from './utils' -import { isAmazonQ, isCloud9, isSageMaker } from '../shared/extensionUtilities' -import { isInDevEnv } from '../shared/vscode/env' -import { isWeb } from '../shared/extensionGlobals' +import { initializeCredentialsProviderManager } from './utils' +import { isAmazonQ, isSageMaker } from '../shared/extensionUtilities' interface SagemakerCookie { authMode?: 'Sso' | 'Iam' @@ -33,28 +30,4 @@ export async function initialize(loginManager: LoginManager): Promise { await loginManager.logout() } }) - - await showManageConnectionsOnStartup() -} - -/** - * Show the Manage Connections page when the extension starts up, if it should be shown. - */ -async function showManageConnectionsOnStartup() { - // Do not show connection management to user in certain scenarios. - let reason: string = '' - if (isWeb()) { - // TODO: Figure out how we want users to connect to auth in browser mode - reason = 'We are in the browser' - } else if (!ExtensionUse.instance.isFirstUse()) { - reason = 'This is not the users first use of the extension' - } else if (isInDevEnv()) { - reason = 'The user is in a Dev Evironment' - } else if (isCloud9('any')) { - reason = 'The user is in Cloud9' - } - if (reason) { - getLogger().debug(`firstStartup: ${reason}. Skipped showing Add Connections page.`) - return - } }