Remove grouped macro
diff --git a/src/group.rs b/src/group.rs
index b968b91..7acb318 100644
--- a/src/group.rs
+++ b/src/group.rs
@@ -1,7 +1,7 @@
use proc_macro2::{Delimiter, Span};
use error::Result;
-use parse::ParseBuffer;
+use parse::{ParseBuffer, ParseStream};
use private;
use token;
@@ -74,11 +74,11 @@
content: content,
})
}
+}
- // Not public API.
- #[doc(hidden)]
- pub fn parse_group(&self) -> Result<Group<'a>> {
- self.parse_delimited(Delimiter::None)
+impl<'a> private<ParseBuffer<'a>> {
+ pub fn parse_group(input: ParseStream) -> Result<Group> {
+ input.parse_delimited(Delimiter::None)
.map(|(span, content)| Group {
token: token::Group(span),
content: content,
@@ -169,19 +169,3 @@
}
};
}
-
-#[doc(hidden)]
-#[macro_export]
-macro_rules! grouped {
- ($content:ident in $cursor:expr) => {
- match $crate::parse::ParseBuffer::parse_group(&$cursor) {
- $crate::export::Ok(group) => {
- $content = group.content;
- group.token
- }
- $crate::export::Err(error) => {
- return $crate::export::Err(error);
- }
- }
- };
-}