Skip to content

Commit cb8f442

Browse files
committed
Remove unused method
1 parent 8bf6b3e commit cb8f442

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
@@ -835,16 +835,6 @@ extension on Element {
835835
}
836836
}
837837

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

0 commit comments

Comments
 (0)