Skip to content

Commit

Permalink
Remove ElementType.canHaveParameters; unused (#3563)
Browse files Browse the repository at this point in the history
  • Loading branch information
srawlins authored Oct 31, 2023
1 parent 87f0882 commit ab845cb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
2 changes: 0 additions & 2 deletions lib/src/element_type.dart
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ abstract class ElementType
return DefinedElementType._from(type, modelElement, library, packageGraph);
}

bool get canHaveParameters => false;

bool get isTypedef => false;

String get linkedName;
Expand Down
7 changes: 0 additions & 7 deletions lib/src/generator/templates.runtime_renderers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4399,13 +4399,6 @@ class _Renderer_ElementType extends RendererBase<ElementType> {
..._Renderer_CommentReferable.propertyMap<CT_>(),
..._Renderer_Nameable.propertyMap<CT_>(),
..._Renderer_ModelBuilder.propertyMap<CT_>(),
'canHaveParameters': Property(
getValue: (CT_ c) => c.canHaveParameters,
renderVariable: (CT_ c, Property<CT_> self,
List<String> remainingNames) =>
self.renderSimpleVariable(c, remainingNames, 'bool'),
getBool: (CT_ c) => c.canHaveParameters == true,
),
'instantiatedType': Property(
getValue: (CT_ c) => c.instantiatedType,
renderVariable: (CT_ c, Property<CT_> self,
Expand Down

0 comments on commit ab845cb

Please sign in to comment.