Skip to content

Commit 7996dca

Browse files
ref(hub): Delete _should_send_default_pii
We don't use this function, and since it is marked as a private method, that means we can delete it.
1 parent cfcd5b1 commit 7996dca

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

sentry_sdk/hub.py

-10
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,6 @@ def overload(x):
5959
_local = ContextVar("sentry_current_hub")
6060

6161

62-
def _should_send_default_pii():
63-
# type: () -> bool
64-
# TODO: Migrate existing code to `scope.should_send_default_pii()` and remove this function.
65-
# New code should not use this function!
66-
client = Hub.current.client
67-
if not client:
68-
return False
69-
return client.should_send_default_pii()
70-
71-
7262
class _InitGuard:
7363
def __init__(self, client):
7464
# type: (Client) -> None

0 commit comments

Comments
 (0)