Skip to content

Commit 2bf8577

Browse files
authored
Feat: Remove Sentry.currentHub (#490)
* Remove currentHub * Update CHANGELOG.md
1 parent cc6b2eb commit 2bf8577

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Unreleased
22

3+
* Remove `Sentry.currentHub` (#490)
4+
35
# 5.1.0
46

57
* Fix: Merge user from event and scope (#467)

dart/lib/src/sentry.dart

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,6 @@ class Sentry {
2424

2525
Sentry._();
2626

27-
/// Returns the current hub
28-
@Deprecated(
29-
'This is scheduled to be removed in Sentry v6.0.0. '
30-
'Instead of currentHub you should use Sentry\'s static methods.',
31-
)
32-
static Hub get currentHub => _hub;
33-
3427
/// Initializes the SDK
3528
/// passing a [AppRunner] callback allows to run the app within its own error
3629
/// zone ([`runZonedGuarded`](https://api.dart.dev/stable/2.10.4/dart-async/runZonedGuarded.html))

0 commit comments

Comments
 (0)