Skip to content

Commit 859488f

Browse files
committed
doc: Removed old APIs from docs
1 parent 93f3a6e commit 859488f

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

docs/index.rst

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -92,16 +92,6 @@ For instance to report a ``failure::Error`` this code can be used:
9292
}
9393
};
9494

95-
For this particular case a shortcut is also provided:
96-
97-
.. sourcecode:: rust
98-
99-
use sentry::integrations::failure::tap_error;
100-
101-
let result = tap_error(a_function_that_might_fail())?;
102-
103-
Similarly the functions ``capture_fail`` and ``tap_fail`` can be used to
104-
work with `Fail` trait objects instead.
10595

10696
Catching Panics
10797
---------------
@@ -132,19 +122,6 @@ implementation (it will wait up to 2 seconds for this):
132122
let _guard = sentry::init(...);
133123
}
134124

135-
Alternatively you can call ``sentry::drain_events`` which takes an
136-
explicit timeout:
137-
138-
.. sourcecode:: rust
139-
140-
use std::time::Duration;
141-
142-
fn main() {
143-
sentry::init(...);
144-
// ...
145-
sentry::drain_events(Some(Duration::from_secs(2)));
146-
}
147-
148125
More Information
149126
----------------
150127

0 commit comments

Comments
 (0)