Skip to content

Commit f72b62f

Browse files
committed
Remove unused extension method, replaced in analyzer 8.4.0
1 parent 98d03ad commit f72b62f

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

lib/src/model/model_element.dart

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -831,16 +831,6 @@ extension on Element {
831831
}
832832
}
833833

834-
// Copied from analyzer's `lib/src/dart/element/extensions.dart`. Re-use that
835-
// extension if it becomes public.
836-
extension on Element {
837-
/// Whether this Element is annotated with a `Deprecated` annotation with a
838-
/// `_DeprecationKind` of [kind].
839-
bool isDeprecatedWithKind(String kind) => metadata.annotations
840-
.where((e) => e.isDeprecated)
841-
.any((e) => e.deprecationKind == kind);
842-
}
843-
844834
// Copied from analyzer's `lib/src/dart/element/extensions.dart`. Re-use that
845835
// extension if it becomes public.
846836
extension ElementAnnotationExtension on ElementAnnotation {

0 commit comments

Comments
 (0)