From 6541f1f30ccc19a2c14a72b7bb78a360ce8f02f4 Mon Sep 17 00:00:00 2001 From: "sentry-junior[bot]" <264270552+sentry-junior[bot]@users.noreply.github.com> Date: Thu, 29 Oct 2026 11:59:10 +0000 Subject: [PATCH] ref: Remove helpers left over from EventScrubber removal Co-Authored-By: Ivana Kellyer --- sentry_sdk/_types.py | 15 --------------- sentry_sdk/utils.py | 9 --------- 2 files changed, 24 deletions(-) diff --git a/sentry_sdk/_types.py b/sentry_sdk/_types.py index 80daf61a2a..a1d69dd4ce 100644 --- a/sentry_sdk/_types.py +++ b/sentry_sdk/_types.py @@ -112,21 +112,6 @@ def substituted_because_over_size_limit( }, ) - @classmethod - def substituted_because_contains_sensitive_data(cls) -> "AnnotatedValue": - """The actual value was removed because it contained sensitive information.""" - return AnnotatedValue( - value=SENSITIVE_DATA_SUBSTITUTE, - metadata={ - "rem": [ # Remark - [ - "!config", # Because of SDK configuration (in this case the config is the hard coded removal of certain django cookies) - "s", # The fields original value was substituted - ] - ] - }, - ) - T = TypeVar("T") Annotated = Union[AnnotatedValue, T] diff --git a/sentry_sdk/utils.py b/sentry_sdk/utils.py index aa308b0172..6f494d486f 100644 --- a/sentry_sdk/utils.py +++ b/sentry_sdk/utils.py @@ -987,15 +987,6 @@ def iter_event_stacktraces(event: "Event") -> "Iterator[Annotated[Dict[str, Any] yield exception["stacktrace"] -def iter_event_frames(event: "Event") -> "Iterator[Dict[str, Any]]": - for stacktrace in iter_event_stacktraces(event): - if isinstance(stacktrace, AnnotatedValue): - stacktrace = stacktrace.value or {} - - for frame in stacktrace.get("frames") or (): - yield frame - - def handle_in_app( event: "Event", in_app_exclude: "Optional[List[str]]" = None,