diff --git a/src/methods/repo.rs b/src/methods/repo.rs
@@ -59,7 +59,6 @@ pub async fn service<ReqBody: Send + 'static>(mut request: Request<ReqBody>) ->
Some("tree") => BoxCloneService::new(handle_tree.into_service()),
Some("commit") => BoxCloneService::new(handle_commit.into_service()),
Some("diff") => BoxCloneService::new(handle_diff.into_service()),
- Some("stats") => BoxCloneService::new(handle_stats.into_service()),
Some("tag") => BoxCloneService::new(handle_tag.into_service()),
Some(v) => {
uri_parts.push(v);
@@ -269,14 +268,3 @@ pub async fn handle_diff(
.unwrap(),
)
}
-
-#[allow(clippy::unused_async)]
-pub async fn handle_stats(Extension(repo): Extension<Repository>) -> Html<String> {
- #[derive(Template)]
- #[template(path = "repo/stats.html")]
- pub struct View {
- pub repo: Repository,
- }
-
- Html(View { repo }.render().unwrap())
-}
diff --git a/templates/repo/base.html b/templates/repo/base.html
@@ -9,6 +9,5 @@
<a href="/{{ repo.display() }}/tree" class="{% block tree_nav_class %}{% endblock %}">tree</a>
<a href="/{{ repo.display() }}/commit" class="{% block commit_nav_class %}{% endblock %}">commit</a>
<a href="/{{ repo.display() }}/diff" class="{% block diff_nav_class %}{% endblock %}">diff</a>
- <a href="/{{ repo.display() }}/stats" class="{% block stats_nav_class %}{% endblock %}">stats</a>
</nav>
{% endblock %}
diff --git a/templates/repo/stats.html b/templates/repo/stats.html
@@ -1,6 +0,0 @@
-{% extends "repo/base.html" %}
-
-{% block stats_nav_class %}active{% endblock %}
-
-{% block content %}
-{% endblock %}
\ No newline at end of file