Skip to content

Commit f8ab10b

Browse files
scheglovcommit-bot@chromium.org
authored andcommitted
Remove CompilationUnitElementImpl.replaceTopLevelVariable
Change-Id: I598fff647524fb8c6737d4eeed9ca9d0fc863913 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/123623 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
1 parent 5b4612b commit f8ab10b

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

pkg/analyzer/lib/src/dart/element/element.dart

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1665,14 +1665,6 @@ class CompilationUnitElementImpl extends UriReferencedElementImpl
16651665
return getTypeFromTypes(className, types);
16661666
}
16671667

1668-
/// Replace the given [from] top-level variable with [to] in this compilation
1669-
/// unit.
1670-
void replaceTopLevelVariable(
1671-
TopLevelVariableElement from, TopLevelVariableElement to) {
1672-
int index = _variables.indexOf(from);
1673-
_variables[index] = to;
1674-
}
1675-
16761668
@override
16771669
void visitChildren(ElementVisitor visitor) {
16781670
super.visitChildren(visitor);

0 commit comments

Comments
 (0)