Skip to content

Commit 93f2344

Browse files
committed
[dwds] Cleanup unused null safety related fields
1 parent cb68ac3 commit 93f2344

File tree

5 files changed

+5
-36
lines changed

5 files changed

+5
-36
lines changed

dwds/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 24.5.0-wip
2+
3+
- Remove unused deprecated fields related to null safety.
4+
15
## 24.4.1
26

37
- Implemented a WebSocket-based communication protocol that provides essential developer tooling (hot reload, service extensions) when Chrome debugger access is unavailable. - [#2605](https://github.com/dart-lang/webdev/issues/2605)

dwds/lib/src/debugging/metadata/provider.dart

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,6 @@ class MetadataProvider {
6767

6868
MetadataProvider(this.entrypoint, this._assetReader);
6969

70-
/// A sound null safety mode for the whole app.
71-
///
72-
/// All libraries have to agree on null safety mode.
73-
@Deprecated('Only sound null safety is supported as of Dart 3.0')
74-
Future<bool> get soundNullSafety async {
75-
await _initialize();
76-
return true;
77-
}
78-
7970
/// A list of all libraries in the Dart application.
8071
///
8172
/// Example:

dwds/lib/src/services/expression_compiler.dart

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,11 @@
66
class CompilerOptions {
77
final ModuleFormat moduleFormat;
88

9-
@Deprecated('Only sound null safety is supported as of Dart 3.0')
10-
final bool soundNullSafety;
11-
129
final bool canaryFeatures;
1310
final List<String> experiments;
1411

1512
CompilerOptions({
1613
required this.moduleFormat,
17-
this.soundNullSafety = true,
1814
required this.canaryFeatures,
1915
required this.experiments,
2016
});

dwds/lib/src/utilities/sdk_configuration.dart

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,6 @@ class SdkLayout {
4747
final String summaryPath;
4848
final String dartdevcSnapshotPath;
4949

50-
@Deprecated('Only sound null safety is supported as of Dart 3.0')
51-
final String soundSummaryPath;
52-
53-
@Deprecated('Only sound null safety is supported as of Dart 3.0')
54-
final String weakSummaryPath;
55-
5650
SdkLayout.createDefault(String sdkDirectory)
5751
: this(
5852
sdkDirectory: sdkDirectory,
@@ -73,8 +67,6 @@ class SdkLayout {
7367
const SdkLayout({
7468
required this.sdkDirectory,
7569
required this.summaryPath,
76-
this.soundSummaryPath = '',
77-
this.weakSummaryPath = '',
7870
required this.dartdevcSnapshotPath,
7971
});
8072
}
@@ -93,17 +85,9 @@ class SdkConfiguration {
9385
final String? sdkSummaryPath;
9486
final String? compilerWorkerPath;
9587

96-
@Deprecated('Only sound null safety is supported as of Dart 3.0')
97-
final String? weakSdkSummaryPath;
98-
99-
@Deprecated('Only sound null safety is supported as of Dart 3.0')
100-
final String? soundSdkSummaryPath;
101-
10288
const SdkConfiguration({
10389
this.sdkDirectory,
10490
this.sdkSummaryPath,
105-
this.weakSdkSummaryPath,
106-
this.soundSdkSummaryPath,
10791
this.compilerWorkerPath,
10892
});
10993

@@ -123,12 +107,6 @@ class SdkConfiguration {
123107
Uri? get sdkDirectoryUri => _toUri(sdkDirectory);
124108
Uri? get sdkSummaryUri => _toUri(sdkSummaryPath);
125109

126-
@Deprecated('Only sound null safety is supported as of Dart 3.0')
127-
Uri? get soundSdkSummaryUri => _toUri(soundSdkSummaryPath);
128-
129-
@Deprecated('Only sound null safety is supported as of Dart 3.0')
130-
Uri? get weakSdkSummaryUri => _toUri(weakSdkSummaryPath);
131-
132110
/// Note: has to be ///file: Uri to run in an isolate.
133111
Uri? get compilerWorkerUri => _toAbsoluteUri(compilerWorkerPath);
134112

dwds/test/sdk_configuration_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ class FakeSdkLayout {
143143

144144
FakeSdkLayout(this.sdkDirectory);
145145

146-
String get summaryPath => p.join(sdkDirectory, 'summaries', 'sound.dill');
146+
String get summaryPath => p.join(sdkDirectory, 'summaries', 'outline.dill');
147147

148148
String get compilerWorkerPath =>
149149
p.join(sdkDirectory, 'snapshots', 'test.snapshot');

0 commit comments

Comments
 (0)