Skip to content

Commit

Permalink
chore(viewmodels): remove unused Button.logout
Browse files Browse the repository at this point in the history
  • Loading branch information
thekaveman committed Jul 14, 2023
1 parent 45e768a commit 442651c
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions benefits/core/viewmodels.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
The core application: view model definitions for the root of the webapp.
"""
from django.utils.translation import pgettext, gettext_lazy as _
from django.urls import reverse

from benefits.core import models

Expand Down Expand Up @@ -51,12 +50,6 @@ def outline_primary(**kwargs):
classes.insert(0, "btn-outline-primary")
return Button(classes=classes, **kwargs)

@staticmethod
def logout(**kwargs):
"""Create a button that logs user out, with a login.gov button, with a login.gov logo and fallback text"""
btn = Button.primary(fallback_text="Login.gov", id="login", url=reverse("oauth:logout"), text="", **kwargs)
return btn

@staticmethod
def previous_page(url):
return Button(text=_("core.buttons.previous_page"), url=url)
Expand Down

0 comments on commit 442651c

Please sign in to comment.