Skip to content

Remove constant templates #2375

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions lib/src/generator/templates.dart
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ class Templates {
final Template classTemplate;
final Template extensionTemplate;
final Template enumTemplate;
final Template constantTemplate;
final Template constructorTemplate;
final Template errorTemplate;
final Template functionTemplate;
Expand All @@ -186,7 +185,6 @@ class Templates {
final Template methodTemplate;
final Template mixinTemplate;
final Template propertyTemplate;
final Template topLevelConstantTemplate;
final Template topLevelPropertyTemplate;
final Template typeDefTemplate;

Expand Down Expand Up @@ -260,8 +258,6 @@ class Templates {
var constructorTemplate = await _loadTemplate('constructor');
var errorTemplate = await _loadTemplate('404error');
var propertyTemplate = await _loadTemplate('property');
var constantTemplate = await _loadTemplate('constant');
var topLevelConstantTemplate = await _loadTemplate('top_level_constant');
var topLevelPropertyTemplate = await _loadTemplate('top_level_property');
var typeDefTemplate = await _loadTemplate('typedef');
var mixinTemplate = await _loadTemplate('mixin');
Expand All @@ -278,8 +274,6 @@ class Templates {
constructorTemplate,
errorTemplate,
propertyTemplate,
constantTemplate,
topLevelConstantTemplate,
topLevelPropertyTemplate,
typeDefTemplate,
mixinTemplate);
Expand All @@ -297,8 +291,6 @@ class Templates {
this.constructorTemplate,
this.errorTemplate,
this.propertyTemplate,
this.constantTemplate,
this.topLevelConstantTemplate,
this.topLevelPropertyTemplate,
this.typeDefTemplate,
this.mixinTemplate);
Expand Down
33 changes: 0 additions & 33 deletions lib/templates/html/constant.html

This file was deleted.

28 changes: 0 additions & 28 deletions lib/templates/html/top_level_constant.html

This file was deleted.

18 changes: 0 additions & 18 deletions lib/templates/md/constant.md

This file was deleted.

18 changes: 0 additions & 18 deletions lib/templates/md/top_level_constant.md

This file was deleted.

2 changes: 0 additions & 2 deletions test/html_generator_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,7 @@ void main() {
expect(templates.functionTemplate, isNotNull);
expect(templates.constructorTemplate, isNotNull);
expect(templates.methodTemplate, isNotNull);
expect(templates.constantTemplate, isNotNull);
expect(templates.propertyTemplate, isNotNull);
expect(templates.topLevelConstantTemplate, isNotNull);
expect(templates.topLevelPropertyTemplate, isNotNull);
});
}
Expand Down