diff --git a/src/error.rs b/src/error.rs
index 76bf88690..18f2aaef7 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -16,20 +16,6 @@
* along with this program. If not, see .
*/
-// assert_err!(your_func(), Err(Error::UrlParsingFailed(_)));
-// assert_err!(your_func(), Err(Error::CanonicalizationFailed(_)));
-// assert_err!(your_func(), Err(Error::FileOpenFailed(er)) if er.kind() == ErrorKind::NotFound);
-#[macro_export]
-macro_rules! assert_err {
- ($expression:expr, $($pattern:tt)+) => {
- match $expression {
- $($pattern)+ => (),
- ref e => panic!("expected `{}` but got `{:?}`", stringify!($($pattern)+), e),
- }
- }
-}
-pub use assert_err;
-
// Hello developer. Please add your error to the according subsection
// that is commented, or make a new subsection. Keep it clean.
diff --git a/src/net/p2p.rs b/src/net/p2p.rs
index 5e7123ea4..46d6668b2 100644
--- a/src/net/p2p.rs
+++ b/src/net/p2p.rs
@@ -40,11 +40,8 @@ use super::{
settings::{Settings, SettingsPtr},
};
use crate::{
- error::assert_err,
- system::{
- sleep_forever, StoppableTask, StoppableTaskPtr, Subscriber, SubscriberPtr, Subscription,
- },
- Error, Result,
+ system::{Subscriber, SubscriberPtr, Subscription},
+ Result,
};
/// Set of channels that are awaiting connection
@@ -80,9 +77,6 @@ pub struct P2p {
/// Reference to configured [`OutboundSession`]
session_outbound: Mutex