diff --git a/lib/src/generator/templates.dart b/lib/src/generator/templates.dart
index b993916148..483ab45db5 100644
--- a/lib/src/generator/templates.dart
+++ b/lib/src/generator/templates.dart
@@ -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;
@@ -186,7 +185,6 @@ class Templates {
final Template methodTemplate;
final Template mixinTemplate;
final Template propertyTemplate;
- final Template topLevelConstantTemplate;
final Template topLevelPropertyTemplate;
final Template typeDefTemplate;
@@ -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');
@@ -278,8 +274,6 @@ class Templates {
constructorTemplate,
errorTemplate,
propertyTemplate,
- constantTemplate,
- topLevelConstantTemplate,
topLevelPropertyTemplate,
typeDefTemplate,
mixinTemplate);
@@ -297,8 +291,6 @@ class Templates {
this.constructorTemplate,
this.errorTemplate,
this.propertyTemplate,
- this.constantTemplate,
- this.topLevelConstantTemplate,
this.topLevelPropertyTemplate,
this.typeDefTemplate,
this.mixinTemplate);
diff --git a/lib/templates/html/constant.html b/lib/templates/html/constant.html
deleted file mode 100644
index d3c68caff6..0000000000
--- a/lib/templates/html/constant.html
+++ /dev/null
@@ -1,33 +0,0 @@
-{{>head}}
-
-
-
-
- {{#self}}
-
{{>source_link}}
{{{name}}} {{kind}} {{>feature_set}}
- {{/self}}
-
-
- {{#property}}
- {{{ linkedReturnType }}}
- {{>name_summary}}
- =
- {{{ constantValue }}}
- {{/property}}
-
-
- {{#property}}
- {{>documentation}}
- {{>source_code}}
- {{/property}}
-
-
-
-
-
-{{>footer}}
diff --git a/lib/templates/html/top_level_constant.html b/lib/templates/html/top_level_constant.html
deleted file mode 100644
index 73d56183de..0000000000
--- a/lib/templates/html/top_level_constant.html
+++ /dev/null
@@ -1,28 +0,0 @@
-{{>head}}
-
-
-
-
- {{#self}}
-
{{>source_link}}
{{{name}}} {{kind}} {{>feature_set}} {{>categorization}}
-
-
- {{>name_summary}}
- =
- {{{ constantValue }}}
- {{>features}}
-
- {{>documentation}}
- {{>source_code}}
- {{/self}}
-
-
-
-
-
-{{>footer}}
diff --git a/lib/templates/md/constant.md b/lib/templates/md/constant.md
deleted file mode 100644
index 984f7e71e1..0000000000
--- a/lib/templates/md/constant.md
+++ /dev/null
@@ -1,18 +0,0 @@
-{{>head}}
-
-{{#self}}
-# {{{name}}} {{kind}}
-
-{{>source_link}}
-{{>feature_set}}
-{{/self}}
-
-{{#property}}
-{{{ linkedReturnType }}} {{>name_summary}} = {{{ constantValue }}}
-
-{{>documentation}}
-
-{{>source_code}}
-{{/property}}
-
-{{>footer}}
diff --git a/lib/templates/md/top_level_constant.md b/lib/templates/md/top_level_constant.md
deleted file mode 100644
index d89d2a624f..0000000000
--- a/lib/templates/md/top_level_constant.md
+++ /dev/null
@@ -1,18 +0,0 @@
-{{>head}}
-
-{{#self}}
-# {{{name}}} {{kind}}
-
-{{>source_link}}
-{{>categorization}}
-{{>feature_set}}
-
-{{>name_summary}} = {{{ constantValue }}} {{!two spaces intentional}}
-{{>features}}
-
-{{>documentation}}
-
-{{>source_code}}
-{{/self}}
-
-{{>footer}}
diff --git a/test/html_generator_test.dart b/test/html_generator_test.dart
index 54a77eee18..3c661d27f3 100644
--- a/test/html_generator_test.dart
+++ b/test/html_generator_test.dart
@@ -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);
});
}