removed unused macros (#10851)

This commit is contained in:
Marek Kotewicz 2019-07-06 20:38:33 +02:00 committed by Andronik Ordian
parent a6e96b052e
commit 0a9095626d
2 changed files with 1 additions and 24 deletions

View File

@ -2,3 +2,4 @@
name = "macros"
version = "0.1.0"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"

View File

@ -44,18 +44,6 @@ macro_rules! hash_map {
}}
}
#[macro_export]
macro_rules! hash_map_into {
() => { HashMap::new() };
( $( $x:expr => $y:expr ),* ) => {{
let mut x = HashMap::new();
$(
x.insert($x.into(), $y.into());
)*
x
}}
}
#[macro_export]
macro_rules! map {
() => { BTreeMap::new() };
@ -68,18 +56,6 @@ macro_rules! map {
}}
}
#[macro_export]
macro_rules! map_into {
() => { BTreeMap::new() };
( $( $x:expr => $y:expr ),* ) => {{
let mut x = BTreeMap::new();
$(
x.insert($x.into(), $y.into());
)*
x
}}
}
#[macro_export]
macro_rules! flush {
($arg:expr) => ($crate::flush($arg.into()));