From 442651ca2d3d36b1ecfa3d059d9f3f2f07534880 Mon Sep 17 00:00:00 2001 From: Kegan Maher Date: Fri, 14 Jul 2023 19:37:22 +0000 Subject: [PATCH] chore(viewmodels): remove unused Button.logout --- benefits/core/viewmodels.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/benefits/core/viewmodels.py b/benefits/core/viewmodels.py index e07bb09872..422f85e3e1 100644 --- a/benefits/core/viewmodels.py +++ b/benefits/core/viewmodels.py @@ -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 @@ -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)