Skip to content

Commit 2a375fb

Browse files
remove zoneWithContext
1 parent f35e0fc commit 2a375fb

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

lib/api.dart

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ export 'src/api/context/context.dart'
1212
contextWithSpanContext,
1313
spanContextFromContext,
1414
spanFromContext,
15-
zone,
16-
zoneWithContext;
15+
zone;
1716
export 'src/api/context/context_manager.dart'
1817
show globalContextManager, registerGlobalContextManager;
1918
export 'src/api/exporters/span_exporter.dart' show SpanExporter;

lib/src/api/context/context.dart

-4
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,6 @@ SpanContext spanContextFromContext(Context context) {
5353
return spanFromContext(context).spanContext;
5454
}
5555

56-
@experimental
57-
@Deprecated('This method will be removed in 0.19.0. Use [zone] instead.')
58-
Zone zoneWithContext(Context context) => zone(context);
59-
6056
/// Returns a new [Zone] such that the given context will be automatically
6157
/// attached and detached for any function that runs within the zone.
6258
@experimental

0 commit comments

Comments
 (0)