aboutsummaryrefslogtreecommitdiff
path: root/src/internal/macros.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/internal/macros.rs')
-rw-r--r--src/internal/macros.rs22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/internal/macros.rs b/src/internal/macros.rs
index 6d82704..31b6b7d 100644
--- a/src/internal/macros.rs
+++ b/src/internal/macros.rs
@@ -1,28 +1,6 @@
//! A set of macros for easily working with internals.
#[cfg(feature = "http")]
-macro_rules! request {
- ($route:expr, $method:ident($body:expr), $url:expr, $($rest:tt)*) => {{
- request($route, || CLIENT
- .$method(&format!(api!($url), $($rest)*))
- .body(&$body))?
- }};
- ($route:expr, $method:ident($body:expr), $url:expr) => {{
- request($route, || CLIENT
- .$method(api!($url))
- .body(&$body))?
- }};
- ($route:expr, $method:ident, $url:expr, $($rest:tt)*) => {{
- request($route, || CLIENT
- .$method(&format!(api!($url), $($rest)*)))?
- }};
- ($route:expr, $method:ident, $url:expr) => {{
- request($route, || CLIENT
- .$method(api!($url)))?
- }};
-}
-
-#[cfg(feature = "http")]
macro_rules! request_client {
() => {{
use hyper::net::HttpsConnector;