Skip to content

Commit 09edc45

Browse files
committed
chore: remove unless comments
1 parent 4b22405 commit 09edc45

File tree

1 file changed

+0
-70
lines changed

1 file changed

+0
-70
lines changed

src/node.rs

-70
Original file line numberDiff line numberDiff line change
@@ -197,76 +197,6 @@ impl<T: fmt::Debug> Node<T> {
197197
}
198198
}
199199
Key::Parameter(k) => match k {
200-
// Kind::Normal => {
201-
// if m == 0 {
202-
// return None;
203-
// }
204-
//
205-
// // slash node
206-
// let mut slash = None;
207-
// // slash position at path
208-
// let sp = bytes.iter().position(|b| *b == b'/');
209-
//
210-
// // static
211-
// if let Some(id) = self.nodes0.as_ref().and_then(|nodes| {
212-
// let tmp = &bytes[0..sp.unwrap_or(m)];
213-
// nodes.iter().find_map(|node| match node.key {
214-
// Key::String(s) => {
215-
// if s[0] == b'/' {
216-
// slash.replace(node);
217-
// return None;
218-
// }
219-
//
220-
// tmp.iter().position(|b| s[0] == *b).and_then(|n| {
221-
// node._find(start + n, &bytes[n..], ranges).map(|id| {
222-
// ranges.push(start);
223-
// ranges.push(start + n);
224-
// id
225-
// })
226-
// })
227-
// }
228-
// _ => unreachable!(),
229-
// })
230-
// }) {
231-
// return Some(id);
232-
// }
233-
//
234-
// // parameter => `:a:b:c`
235-
// if let Some(id) = self.nodes1.as_ref().and_then(|nodes| {
236-
// let b = m - 1 > 0;
237-
// nodes
238-
// .iter()
239-
// .filter(|node| match node.key {
240-
// Key::Parameter(pk)
241-
// if pk == Kind::Normal || pk == Kind::OneOrMore =>
242-
// {
243-
// b
244-
// }
245-
// _ => true,
246-
// })
247-
// .find_map(|node| node._find(start + 1, &bytes[1..], ranges))
248-
// }) {
249-
// ranges.push(start);
250-
// ranges.push(start + 1);
251-
// return Some(id);
252-
// }
253-
//
254-
// if let Some(n) = sp {
255-
// return slash
256-
// .and_then(|node| node._find(start + n, &bytes[n..], ranges))
257-
// .map(|id| {
258-
// ranges.push(start);
259-
// ranges.push(start + n);
260-
// id
261-
// });
262-
// } else {
263-
// return self.value.as_ref().map(|id| {
264-
// ranges.push(start);
265-
// ranges.push(start + m);
266-
// id
267-
// });
268-
// }
269-
// }
270200
Kind::Normal | Kind::Optional | Kind::OptionalSegment => {
271201
if m == 0 {
272202
if k == &Kind::Normal {

0 commit comments

Comments
 (0)