Skip to content

Commit 4090854

Browse files
committed
fix: remove unused func
1 parent 6afe7af commit 4090854

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

otelcol/command_components.go

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import (
1515
"go.opentelemetry.io/collector/connector"
1616
"go.opentelemetry.io/collector/exporter"
1717
"go.opentelemetry.io/collector/extension"
18-
"go.opentelemetry.io/collector/internal/componentalias"
1918
"go.opentelemetry.io/collector/processor"
2019
"go.opentelemetry.io/collector/receiver"
2120
)
@@ -165,9 +164,7 @@ func sortProvidersByScheme(providerModules map[string]string, provFactories []co
165164
for _, f := range provFactories {
166165
provF := f.Create(set)
167166
scheme := provF.Scheme()
168-
if !isComponentAlias(f) {
169-
schemes = append(schemes, scheme)
170-
}
167+
schemes = append(schemes, scheme)
171168
}
172169

173170
sort.Strings(schemes)
@@ -195,10 +192,3 @@ func sortConverterModules(modules []string) []componentWithoutStability {
195192
}
196193
return sortedModules
197194
}
198-
199-
func isComponentAlias(component any) bool {
200-
if al, ok := component.(componentalias.TypeAliasHolder); ok {
201-
return al.DeprecatedAlias().String() != ""
202-
}
203-
return false
204-
}

0 commit comments

Comments
 (0)