Skip to content

Commit

Permalink
Remove deprecated members of InheritanceManager3.
Browse files Browse the repository at this point in the history
This is an internal change, and I expect it to be de-facto not
breaking anything at this point.

Change-Id: I8f703fe708acc60ecc2c03e5a406c9e5ef901d8b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/383501
Reviewed-by: Phil Quitslund <[email protected]>
Commit-Queue: Konstantin Shcheglov <[email protected]>
  • Loading branch information
scheglov authored and Commit Queue committed Sep 6, 2024
1 parent 1a0a2a6 commit 8e48db8
Showing 1 changed file with 0 additions and 46 deletions.
46 changes: 0 additions & 46 deletions pkg/analyzer/lib/src/dart/element/inheritance_manager3.dart
Original file line number Diff line number Diff line change
Expand Up @@ -145,24 +145,6 @@ class InheritanceManager3 {
return getInheritedMap2(element)[name];
}

/// Return signatures of all concrete members that the given [type] inherits
/// from the superclasses and mixins.
@Deprecated('Use getInheritedConcreteMap2')
Map<Name, ExecutableElement> getInheritedConcreteMap(InterfaceType type) {
var result = <Name, ExecutableElement>{};

var substitution = Substitution.fromInterfaceType(type);
var rawMap = getInheritedConcreteMap2(type.element);
for (var rawEntry in rawMap.entries) {
result[rawEntry.key] = ExecutableMember.from2(
rawEntry.value,
substitution,
);
}

return result;
}

/// Return signatures of all concrete members that the given [element] inherits
/// from the superclasses and mixins.
Map<Name, ExecutableElement> getInheritedConcreteMap2(
Expand All @@ -175,26 +157,6 @@ class InheritanceManager3 {
return interface.superImplemented.last;
}

/// Return the mapping from names to most specific signatures of members
/// inherited from the super-interfaces (superclasses, mixins, and
/// interfaces). If there is no most specific signature for a name, the
/// corresponding name will not be included.
@Deprecated('Use getInheritedMap2')
Map<Name, ExecutableElement> getInheritedMap(InterfaceType type) {
var result = <Name, ExecutableElement>{};

var substitution = Substitution.fromInterfaceType(type);
var rawMap = getInheritedMap2(type.element);
for (var rawEntry in rawMap.entries) {
result[rawEntry.key] = ExecutableMember.from2(
rawEntry.value,
substitution,
);
}

return result;
}

/// Return the mapping from names to most specific signatures of members
/// inherited from the super-interfaces (superclasses, mixins, and
/// interfaces). If there is no most specific signature for a name, the
Expand Down Expand Up @@ -312,14 +274,6 @@ class InheritanceManager3 {
return interface.map[name];
}

/// Return all members of mixins, superclasses, and interfaces that a member
/// with the given [name], defined in the [type], would override; or `null`
/// if no members would be overridden.
@Deprecated('Use getOverridden2')
List<ExecutableElement>? getOverridden(InterfaceType type, Name name) {
return getOverridden2(type.element, name);
}

/// Return all members of mixins, superclasses, and interfaces that a member
/// with the given [name], defined in the [element], would override; or `null`
/// if no members would be overridden.
Expand Down

0 comments on commit 8e48db8

Please sign in to comment.