Skip to content

Commit

Permalink
ref: delete unused never_cache (#82837)
Browse files Browse the repository at this point in the history
<!-- Describe your PR here. -->
  • Loading branch information
asottile-sentry authored Jan 2, 2025
1 parent 2591ef5 commit 0ce7161
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/sentry/integrations/slack/views/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,15 @@

from django.http import HttpRequest, HttpResponse
from django.urls import reverse
from django.views.decorators.cache import never_cache as django_never_cache
from rest_framework.request import Request

from sentry.utils.http import absolute_uri
from sentry.utils.signing import sign
from sentry.web.decorators import EndpointFunc
from sentry.web.helpers import render_to_response

SALT = "sentry-slack-integration"


def never_cache(view_func: EndpointFunc) -> EndpointFunc:
"""TODO(mgaeta): Remove cast once Django has a typed version."""
result: EndpointFunc = django_never_cache(view_func)
return result


def build_linking_url(endpoint: str, **kwargs: Any) -> str:
"""TODO(mgaeta): Remove cast once sentry/utils/http.py is typed."""
url: str = absolute_uri(reverse(endpoint, kwargs={"signed_params": sign(salt=SALT, **kwargs)}))
Expand Down

0 comments on commit 0ce7161

Please sign in to comment.