Skip to content

Commit bbbe0c6

Browse files
committed
remove dead code
Signed-off-by: alex boten <[email protected]>
1 parent 0cbb92c commit bbbe0c6

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

otelconf/config_common.go

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -137,29 +137,6 @@ func unmarshalSamplerTypes(raw map[string]any, plain *Sampler) {
137137
}
138138
}
139139

140-
// unmarshalTextMapPropagatorTypes handles all propagator type unmarshaling.
141-
func unmarshalTextMapPropagatorTypes(raw map[string]any, plain *TextMapPropagator) {
142-
// b3 can be nil, must check and set here
143-
if v, ok := raw["b3"]; ok && v == nil {
144-
plain.B3 = B3Propagator{}
145-
}
146-
if v, ok := raw["b3multi"]; ok && v == nil {
147-
plain.B3Multi = B3MultiPropagator{}
148-
}
149-
if v, ok := raw["baggage"]; ok && v == nil {
150-
plain.Baggage = BaggagePropagator{}
151-
}
152-
if v, ok := raw["jaeger"]; ok && v == nil {
153-
plain.Jaeger = JaegerPropagator{}
154-
}
155-
if v, ok := raw["ottrace"]; ok && v == nil {
156-
plain.Ottrace = OpenTracingPropagator{}
157-
}
158-
if v, ok := raw["tracecontext"]; ok && v == nil {
159-
plain.Tracecontext = TraceContextPropagator{}
160-
}
161-
}
162-
163140
// unmarshalMetricProducer handles opencensus metric producer unmarshaling.
164141
func unmarshalMetricProducer(raw map[string]any, plain *MetricProducer) {
165142
// opencensus can be nil, must check and set here

0 commit comments

Comments
 (0)