Skip to content

[AI Improvement] [Task] Remove unreferenced helper removePathSegments in functionsEmulatorUtils - #11118

Draft
joehan wants to merge 1 commit into
mainfrom
ai-improve-563477805-task-remove-unreferenced-helper-rem
Draft

joehan wants to merge 1 commit into
mainfrom
ai-improve-563477805-task-remove-unreferenced-helper-rem

Conversation

@joehan

@joehan joehan commented Sep 18, 2026

Copy link
Copy Markdown
Member

Resolves Buganizer b/563477805

Proposed Improvement

Removes the unused and unreferenced removePathSegments(path: string, count: number): string helper from src/emulator/functionsEmulatorUtils.ts.
This eliminates dead code and reduces the module footprint for functionsEmulatorRuntime in isolated Node subprocesses.

Verification

  • git grep "removePathSegments": Verified 0 occurrences across the codebase.
  • npm run build: Compiled successfully without errors.
  • npx mocha src/emulator/functionsEmulatorUtils.spec.ts src/emulator/functionsEmulatorShared.spec.ts: All 42 unit tests passed.
  • npx mocha 'src/emulator/**/*.spec.ts': All 591 emulator unit tests passed cleanly.
  • npx eslint src/emulator/functionsEmulatorUtils.ts: 0 errors.

@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 unused helper function removePathSegments from src/emulator/functionsEmulatorUtils.ts. There are no review comments, and I have no 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