Skip to content

refactor: remove unused internal method contents.canGoToIndex() - #50606

Merged
codebytere merged 1 commit into
mainfrom
chore/remove-unused-internal-method-WebContents-canGoToIndex
Apr 1, 2026
Merged

codebytere merged 1 commit into
mainfrom
chore/remove-unused-internal-method-WebContents-canGoToIndex

Conversation

@ckerr

@ckerr ckerr commented Mar 31, 2026 •

Copy link
Copy Markdown
Member

Description of Change

Remove unused internal JS method webContents.canGoToIndex(). The last reference to this code was removed in 2021 by #28839

The C++ WebContents class still uses this method internally, so keep that but make it private.

Checklist

Release Notes

Notes: none

refactor: make WebContents::CanGoToIndex() private

The JS binding has been unused since 2021-04-27 #28839 0a1b26b
@ckerr ckerr added semver/patch backwards-compatible bug fixes target/42-x-y PR should also be added to the "42-x-y" branch. labels Mar 31, 2026
@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label Mar 31, 2026
@ckerr ckerr changed the title refactor: remove unused internal method contents.canGoToIndex() refactor: remove unused internal method contents.canGoToIndex() Mar 31, 2026
@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label Apr 1, 2026
@codebytere
codebytere merged commit 81f8fc1 into main Apr 1, 2026
75 checks passed
@codebytere
codebytere deleted the chore/remove-unused-internal-method-WebContents-canGoToIndex branch April 1, 2026 20:37
@release-clerk

release-clerk Bot commented Apr 1, 2026

Copy link
Copy Markdown

No Release Notes

@trop

trop Bot commented Apr 1, 2026

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "42-x-y", please check out #50631

@trop trop Bot added in-flight/42-x-y merged/42-x-y PR was merged to the "42-x-y" branch. and removed target/42-x-y PR should also be added to the "42-x-y" branch. in-flight/42-x-y labels Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged/42-x-y PR was merged to the "42-x-y" branch. semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants