Skip to content

Commit 41e28d5

Browse files
committed
chore: remove unused code
1 parent 9746cb8 commit 41e28d5

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

downloads/views.py

-9
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,6 @@ class ReleaseFeed(Feed):
168168
title = "Python Releases"
169169
description = "Latest Python releases from Python.org"
170170

171-
@staticmethod
172-
def link() -> str:
173-
"""Return the URL to the main downloads page."""
174-
return reverse("downloads:download")
175-
176171
def items(self) -> list[dict[str, Any]]:
177172
"""Return the latest Python releases."""
178173
return Release.objects.filter(is_published=True).order_by("-release_date")[:10]
@@ -185,10 +180,6 @@ def item_description(self, item: Release) -> str:
185180
"""Return the release version and release date as the item description."""
186181
return f"Version: {item.version}, Release Date: {item.release_date}"
187182

188-
def item_link(self, item: Release) -> str:
189-
"""Return the URL to the release page on python.org."""
190-
return reverse("downloads:download_release_detail", args=[item.slug])
191-
192183
def item_pubdate(self, item: Release) -> datetime | None:
193184
"""Return the release date as the item publication date."""
194185
if item.release_date:

0 commit comments

Comments
 (0)