Skip to content

Commit

Permalink
chore(viewmodels): remove unused home button
Browse files Browse the repository at this point in the history
  • Loading branch information
thekaveman committed Jul 13, 2023
1 parent 509d5b3 commit 3a8dd77
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions benefits/core/viewmodels.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

from benefits.core import models

from . import session


class Button:
"""
Expand Down Expand Up @@ -45,14 +43,6 @@ def agency_contact_links(agency):
Button.link(text=agency.info_url, url=agency.info_url, target="_blank", rel="noopener noreferrer"),
]

@staticmethod
def home(request, text=None):
"""Create a button back to this session's origin."""
if text is None:
text = _("core.buttons.return_home")

return Button.primary(text=text, url=session.origin(request))

@staticmethod
def link(**kwargs):
classes = kwargs.pop("classes", [])
Expand Down

0 comments on commit 3a8dd77

Please sign in to comment.