diff options
Diffstat (limited to 'ipc/src/lib.rs')
-rw-r--r-- | ipc/src/lib.rs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/ipc/src/lib.rs b/ipc/src/lib.rs index f6f2525a..7dbe78e2 100644 --- a/ipc/src/lib.rs +++ b/ipc/src/lib.rs @@ -74,21 +74,6 @@ pub use crate::core::{Config, Context, IPCPolicy}; #[cfg(test)] mod tests; -macro_rules! platform { - { unix => { $($unix:tt)* }, windows => { $($windows:tt)* } } => { - if cfg!(unix) { - #[cfg(unix)] { $($unix)* } - #[cfg(not(unix))] { unreachable!() } - } else if cfg!(windows) { - #[cfg(windows)] { $($windows)* } - #[cfg(not(windows))] { unreachable!() } - } else { - #[cfg(not(any(unix, windows)))] compile_error!("Unsupported platform"); - unreachable!() - } - } -} - /// Servers need to implement this trait. pub trait Handler { /// Called on every connection. |