From 8f12e8a114546326ee5b39d6aae859da6d906d0b Mon Sep 17 00:00:00 2001 From: Gaurav <39389231+gsquared94@users.noreply.github.com> Date: Fri, 11 Jul 2025 10:57:35 -0700 Subject: fix: clearcut logging (retry #3744) (#3751) --- packages/core/src/utils/user_id.ts | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'packages/core/src/utils/user_id.ts') diff --git a/packages/core/src/utils/user_id.ts b/packages/core/src/utils/user_id.ts index 42bbee35..6f16806f 100644 --- a/packages/core/src/utils/user_id.ts +++ b/packages/core/src/utils/user_id.ts @@ -56,27 +56,3 @@ export function getInstallationId(): string { return '123456789'; } } - -/** - * Retrieves the obfuscated Google Account ID for the currently authenticated user. - * When OAuth is available, returns the user's cached Google Account ID. Otherwise, returns the installation ID. - * @returns A string ID for the user (Google Account ID if available, otherwise installation ID). - */ -export async function getGoogleAccountId(): Promise { - // Try to get cached Google Account ID first - try { - // Dynamic import to avoid circular dependencies - const { getCachedGoogleAccountId } = await import( - '../code_assist/oauth2.js' - ); - const googleAccountId = getCachedGoogleAccountId(); - if (googleAccountId) { - return googleAccountId; - } - } catch (error) { - // If there's any error accessing Google Account ID, just return empty string - console.debug('Could not get cached Google Account ID:', error); - } - - return ''; -} -- cgit v1.2.3