Skip to content

[AI Improvement] [Task] Remove unreferenced legacy helper src/firestore/checkDatabaseType.ts - #11107

Draft
joehan wants to merge 1 commit into
mainfrom
ai-improve-563465674-task-remove-unreferenced-legacy-hel
Draft

joehan wants to merge 1 commit into
mainfrom
ai-improve-563465674-task-remove-unreferenced-legacy-hel

Conversation

@joehan

@joehan joehan commented Sep 18, 2026

Copy link
Copy Markdown
Member

Resolves Buganizer b/563465674

Proposed Improvement

Removes src/firestore/checkDatabaseType.ts, an unreferenced 43-line legacy helper function that previously queried Firestore database instances to distinguish between Datastore mode and Native mode.

Codebase audit confirms:

  • 0 imports of checkDatabaseType in src/
  • 0 imports in scripts/
  • 0 imports in test files
  • Not exported in any package entry points or public API surfaces

Verification

  • npm run build: Compiled cleanly.
  • npm run mocha src/init/features/firestore/*.spec.ts: All 7 tests passed.
  • npm run mocha src/firestore/*.spec.ts: All 126 tests passed.
  • npm run lint:quiet: Clean (0 errors, 0 warnings).

@joehan joehan self-assigned this Sep 18, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request removes the checkDatabaseType utility function, which was used to determine the Firestore database type for a given project. There are no review comments to address, and I have no additional feedback to provide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants