Skip to content

Commit

Permalink
linter: Remove deprecated NodeLintRegistry.addOnClause
Browse files Browse the repository at this point in the history
Cq-Include-Trybots: luci.dart.try:flutter-analyze-try,analyzer-win-release-try,pkg-win-release-try
Change-Id: I3c1b1ee14591b21c9ea718178e0650a84bf51d95
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/366404
Auto-Submit: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
  • Loading branch information
srawlins authored and Commit Queue committed May 14, 2024
1 parent 3f53542 commit 54fc1b1
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions pkg/analyzer/lib/src/lint/linter_visitor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -701,8 +701,8 @@ class LinterVisitor implements AstVisitor<void> {
node.visitChildren(this);
}

@Deprecated('Use visitMixinOnClause() instead')
@override
// ignore: deprecated_member_use_from_same_package
void visitOnClause(OnClause node) {
_runSubscriptions(node, registry._forMixinOnClause);
node.visitChildren(this);
Expand Down Expand Up @@ -1815,11 +1815,6 @@ class NodeLintRegistry {
_forObjectPattern.add(_Subscription(linter, visitor, _getTimer(linter)));
}

@Deprecated('Use addMixinOnClause() instead')
void addOnClause(LintRule linter, AstVisitor visitor) {
addMixinOnClause(linter, visitor);
}

void addParenthesizedExpression(LintRule linter, AstVisitor visitor) {
_forParenthesizedExpression
.add(_Subscription(linter, visitor, _getTimer(linter)));
Expand Down

0 comments on commit 54fc1b1

Please sign in to comment.