-
Notifications
You must be signed in to change notification settings - Fork 368
[dead-code] chore: remove dead functions — 4 functions removed #25798
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -35,17 +35,6 @@ func normalizeHeredocDelimiters(content string) string { | |
| return heredocDelimiterRE.ReplaceAllString(content, "GH_AW_${1}_NORM_EOF") | ||
| } | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ✅ Removing |
||
|
|
||
| // containerPinRE matches Docker image digest pins of the form @sha256:<64 hex chars>. | ||
| // Used to normalize output that may or may not include container pins depending on | ||
| // whether the action cache is available (native compilation has it, wasm does not). | ||
| var containerPinRE = regexp.MustCompile(`@sha256:[0-9a-f]{64}`) | ||
|
|
||
| // normalizeContainerPins strips @sha256:… digest suffixes from Docker image references | ||
| // so that compiled output compares equal regardless of whether the action cache was loaded. | ||
| func normalizeContainerPins(content string) string { | ||
| return containerPinRE.ReplaceAllString(content, "") | ||
| } | ||
|
|
||
| const ( | ||
| // MaxLockFileSize is the maximum allowed size for generated lock workflow files (500KB) | ||
| MaxLockFileSize = 512000 // 500KB in bytes | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -6,18 +6,22 @@ import ( | |||||
| "fmt" | ||||||
| "os" | ||||||
| "path/filepath" | ||||||
| "regexp" | ||||||
| "strings" | ||||||
| "testing" | ||||||
|
|
||||||
| "github.com/charmbracelet/x/exp/golden" | ||||||
| "github.com/stretchr/testify/require" | ||||||
| ) | ||||||
|
|
||||||
| // containerPinRE matches Docker image digest pins of the form @sha256:<64 hex chars>. | ||||||
|
||||||
| // containerPinRE matches Docker image digest pins of the form @sha256:<64 hex chars>. | |
| // testContainerPinRE matches Docker image digest pins of the form @sha256:<64 hex chars>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Good cleanup —
ReadFileFromHEADwas a thin wrapper aroundReadFileFromHEADWithRoot. Removing the wrapper reduces the public API surface and makes callers use the more explicit version directly. This is a clean dead-code removal.