Skip to content

Commit

Permalink
ref(hub): Delete _should_send_default_pii
Browse files Browse the repository at this point in the history
We don't use this function, and since it is marked as a private method, that means we can delete it.
  • Loading branch information
szokeasaurusrex committed Jul 11, 2024
1 parent cfcd5b1 commit 7996dca
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions sentry_sdk/hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,6 @@ def overload(x):
_local = ContextVar("sentry_current_hub")


def _should_send_default_pii():
# type: () -> bool
# TODO: Migrate existing code to `scope.should_send_default_pii()` and remove this function.
# New code should not use this function!
client = Hub.current.client
if not client:
return False
return client.should_send_default_pii()


class _InitGuard:
def __init__(self, client):
# type: (Client) -> None
Expand Down

0 comments on commit 7996dca

Please sign in to comment.