Skip to content

Commit 93ac586

Browse files
committed
wip
1 parent 4ded553 commit 93ac586

1 file changed

Lines changed: 3 additions & 38 deletions

File tree

steamkit-vdf/src/parser.rs

Lines changed: 3 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
use std::{
2-
io::{BufRead, BufReader, Cursor, Read},
3-
iter::Peekable,
4-
str::Chars,
5-
};
6-
71
#[cfg(all(feature = "regex", feature = "regex-lite"))]
82
compile_error!("Features 'regex' and 'regex-lite' cannot be enabled at the same time.");
93
#[cfg(feature = "regex")]
@@ -25,38 +19,9 @@ pub struct Options {
2519
pub conditionals: Option<Vec<String>>,
2620
}
2721

28-
pub fn from_reader<R: Read>(mut input: R, options: &Options) -> Result<Group> {
29-
let mut s = String::new();
30-
input.read_to_string(&mut s).unwrap();
31-
from_str(&s, options)
32-
}
33-
34-
pub fn from_str(input: &str, options: &Options) -> Result<Group> {
35-
let mut entries = vec![];
36-
let mut reader = input.chars().peekable();
37-
38-
22+
pub fn from_str(_input: &str, _options: &Options) -> Result<Group> {
23+
let entries = vec![];
24+
// let mut _reader = input.chars().peekable();
3925

4026
Ok(Group { entries })
4127
}
42-
43-
struct Reader<R: Read> {
44-
reader: R,
45-
buffer: Vec<u8>,
46-
}
47-
48-
// fn consume_whitespace(reader: &mut Peekable<Chars>) {
49-
// while let Some(&c) = reader.peek() {
50-
// if c != ' ' && c != '\t' {
51-
// break;
52-
// }
53-
// reader.next();
54-
// }
55-
// }
56-
57-
// #[test]
58-
// fn test() {
59-
// let input = r#" test "#;
60-
61-
// from_str(input, &Options::default()).unwrap();
62-
// }

0 commit comments

Comments
 (0)