Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Remove Sentry.currentHub #490

Merged
merged 2 commits into from
Jun 8, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Remove currentHub
  • Loading branch information
ueman committed Jun 7, 2021
commit a3d8e4789ebeb7f61892c182d348ccc8c3233fa5
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Unreleased

* Remove `Sentry.currentHub`
ueman marked this conversation as resolved.
Show resolved Hide resolved

# 5.1.0

* Fix: Merge user from event and scope (#467)
Expand Down
7 changes: 0 additions & 7 deletions dart/lib/src/sentry.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@ class Sentry {

Sentry._();

/// Returns the current hub
@Deprecated(
'This is scheduled to be removed in Sentry v6.0.0. '
'Instead of currentHub you should use Sentry\'s static methods.',
)
static Hub get currentHub => _hub;

/// Initializes the SDK
/// passing a [AppRunner] callback allows to run the app within its own error
/// zone ([`runZonedGuarded`](https://api.dart.dev/stable/2.10.4/dart-async/runZonedGuarded.html))
Expand Down