Skip to content

Commit c856835

Browse files
committed
Remove unused variable
1 parent 852c9d4 commit c856835

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

pkg/pub_worker/lib/src/bin/pana_wrapper.dart

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import 'package:pub_semver/pub_semver.dart';
1717
import 'package:pub_worker/src/bin/dartdoc_wrapper.dart';
1818
import 'package:pub_worker/src/sdks.dart';
1919
import 'package:pub_worker/src/utils.dart';
20-
import 'package:pubspec_parse/pubspec_parse.dart' as pubspek;
2120
import 'package:retry/retry.dart';
2221

2322
final _log = Logger('pana');
@@ -219,8 +218,6 @@ Future<({String configKind, String? dartSdkPath, String? flutterSdkPath})>
219218
flutterSdks.firstWhereOrNull((sdk) => !sdk.version.isPreRelease) ??
220219
flutterSdks.firstOrNull;
221220

222-
final minMacrosVersion = pubspec.getDependencyContraintRangeMin('macros');
223-
224221
bool matchesSdks({
225222
required Version? dart,
226223
required Version? flutter,
@@ -418,17 +415,3 @@ Future<List<_SdkBundle>> _detectSdkBundles() async {
418415
),
419416
];
420417
}
421-
422-
extension on Pubspec {
423-
Version? getDependencyContraintRangeMin(String package) {
424-
final dep = dependencies[package] ?? devDependencies[package];
425-
if (dep is! pubspek.HostedDependency) {
426-
return null;
427-
}
428-
final vc = dep.version;
429-
if (vc is! VersionRange) {
430-
return null;
431-
}
432-
return vc.min;
433-
}
434-
}

0 commit comments

Comments
 (0)