Skip to content

Google Docs add-in: remove remaining unused Apps Script bridge functions #454

Description

@kcarnold

Background

Follow-up to removing the dead proxyToBackend layer (branch claude/google-docs-dead-code-grn2s0). While tracing callers, these Apps Script functions in google-docs-addon/Code.gs (and their window.GoogleAppsScript wrappers in google-docs-addon/sidebar.html) also appear unused by the React frontend:

  • insertTextAtCursor
  • replaceSelection
  • setUserProperty
  • getUserProperty

A repo-wide search of frontend/src for window.GoogleAppsScript usage found only these live: getDocContext, selectPhrase, getDocumentId, getAllTabs, getCurrentUserEmail.

Task

Verify the four functions above are truly unused (search frontend/ and any other callers), then remove them from both Code.gs and sidebar.html if confirmed dead.

Scope

Kept out of the proxyToBackend removal PR to keep that change tight and focused.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions