Skip to content

Commit 8797d0f

Browse files
authored
Remove unused skipFn in variable resolution mutator (#3366)
Usage removed in #2157 Added in #1467
1 parent 2414730 commit 8797d0f

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

bundle/config/mutator/resolve_variable_references.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ type resolveVariableReferences struct {
4747
prefixes []string
4848
pattern dyn.Pattern
4949
lookupFn func(dyn.Value, dyn.Path, *bundle.Bundle) (dyn.Value, error)
50-
skipFn func(dyn.Value) bool
5150
extraRounds int
5251

5352
// includeResources allows resolving variables in 'resources', otherwise, they are excluded.
@@ -216,10 +215,6 @@ func (m *resolveVariableReferences) resolveOnce(b *bundle.Bundle, prefixes []dyn
216215
// Perform resolution only if the path starts with one of the specified prefixes.
217216
for _, prefix := range prefixes {
218217
if path.HasPrefix(prefix) {
219-
// Skip resolution if there is a skip function and it returns true.
220-
if m.skipFn != nil && m.skipFn(v) {
221-
return dyn.InvalidValue, dynvar.ErrSkipResolution
222-
}
223218
hasUpdates = true
224219
return m.lookupFn(normalized, path, b)
225220
}

0 commit comments

Comments
 (0)