Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused internal or unexported functions #3481

Merged
merged 1 commit into from
Nov 16, 2024

Conversation

alexandear
Copy link
Contributor

@alexandear alexandear commented Sep 23, 2024

This PR removes unused internal or unexported functions reported by the deadcode analyzer.

Details
❯ deadcode ./... | grep internal
internal/action/infocomplete.go:138:6: unreachable func: contains
internal/buffer/line_array.go:289:22: unreachable func: LineArray.deleteByte
internal/config/plugin.go:148:6: unreachable func: FindAnyPlugin
internal/config/rtfiles.go:102:21: unreachable func: namedFile.Name
internal/screen/screen.go:240:6: unreachable func: InitSimScreen
internal/util/profile.go:19:6: unreachable func: Tic
internal/util/profile.go:24:6: unreachable func: Toc
internal/util/util.go:238:6: unreachable func: IsUpperWordChar
internal/util/util.go:244:6: unreachable func: IsLowerWordChar
internal/util/util.go:514:6: unreachable func: ParseSpecial

@alexandear alexandear changed the title Remove unused internal functions Remove unused internal or unexported functions Sep 23, 2024
internal/util/profile.go Outdated Show resolved Hide resolved
internal/config/rtfiles.go Show resolved Hide resolved
internal/util/util.go Show resolved Hide resolved
@dmaluka dmaluka merged commit b881bf5 into zyedidia:master Nov 16, 2024
6 checks passed
@alexandear alexandear deleted the refactor/remove-unused-funcs branch November 17, 2024 05:23
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.

4 participants