Skip to content

Commit dacf5bc

Browse files
srawlinsCommit Queue
authored andcommitted
linter: Remove deprecated DartTypeUtilities
Change-Id: Iacfebcd6dbc9f30ae3ec01a6053dd92f938ad112 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/391481 Commit-Queue: Phil Quitslund <[email protected]> Reviewed-by: Phil Quitslund <[email protected]> Auto-Submit: Samuel Rawlins <[email protected]>
1 parent c96662c commit dacf5bc

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

pkg/linter/lib/src/util/dart_type_utilities.dart

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -208,37 +208,6 @@ bool _isFunctionTypeUnrelatedToType(FunctionType type1, DartType type2) {
208208

209209
typedef AstNodePredicate = bool Function(AstNode node);
210210

211-
class DartTypeUtilities {
212-
@Deprecated('Replace with `type.extendsClass`')
213-
static bool extendsClass(
214-
DartType? type, String? className, String? library) =>
215-
type.extendsClass(className, library!);
216-
217-
@Deprecated('Replace with `rawNode.canonicalElement`')
218-
static Element? getCanonicalElementFromIdentifier(AstNode? rawNode) =>
219-
rawNode.canonicalElement;
220-
221-
@Deprecated('Replace with `type.implementsInterface`')
222-
static bool implementsInterface(
223-
DartType? type, String interface, String library) =>
224-
type.implementsInterface(interface, library);
225-
226-
// TODO(pq): remove and replace w/ an extension (pending internal migration)
227-
@Deprecated('Slated for removal')
228-
static bool isClass(DartType? type, String? className, String? library) =>
229-
type is InterfaceType &&
230-
type.element.name == className &&
231-
type.element.library.name == library;
232-
233-
@Deprecated('Replace with `expression.isNullLiteral`')
234-
static bool isNullLiteral(Expression? expression) => expression.isNullLiteral;
235-
236-
@Deprecated('Use `argumentsMatchParameters`')
237-
static bool matchesArgumentsWithParameters(NodeList<Expression> arguments,
238-
NodeList<FormalParameter> parameters) =>
239-
argumentsMatchParameters(arguments, parameters);
240-
}
241-
242211
class InterfaceTypeDefinition {
243212
final String name;
244213
final String library;

0 commit comments

Comments
 (0)