Skip to content

Commit f9e09e2

Browse files
committed
remove dead code
Signed-off-by: alex boten <[email protected]>
1 parent 69aeea7 commit f9e09e2

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
@@ -116,29 +116,6 @@ func unmarshalSamplerTypes(raw map[string]any, plain *Sampler) {
116116
}
117117
}
118118

119-
// unmarshalTextMapPropagatorTypes handles all propagator type unmarshaling.
120-
func unmarshalTextMapPropagatorTypes(raw map[string]any, plain *TextMapPropagator) {
121-
// b3 can be nil, must check and set here
122-
if v, ok := raw["b3"]; ok && v == nil {
123-
plain.B3 = B3Propagator{}
124-
}
125-
if v, ok := raw["b3multi"]; ok && v == nil {
126-
plain.B3Multi = B3MultiPropagator{}
127-
}
128-
if v, ok := raw["baggage"]; ok && v == nil {
129-
plain.Baggage = BaggagePropagator{}
130-
}
131-
if v, ok := raw["jaeger"]; ok && v == nil {
132-
plain.Jaeger = JaegerPropagator{}
133-
}
134-
if v, ok := raw["ottrace"]; ok && v == nil {
135-
plain.Ottrace = OpenTracingPropagator{}
136-
}
137-
if v, ok := raw["tracecontext"]; ok && v == nil {
138-
plain.Tracecontext = TraceContextPropagator{}
139-
}
140-
}
141-
142119
// unmarshalMetricProducer handles opencensus metric producer unmarshaling.
143120
func unmarshalMetricProducer(raw map[string]any, plain *MetricProducer) {
144121
// opencensus can be nil, must check and set here

0 commit comments

Comments
 (0)