Shared: Remove unused type

This commit is contained in:
Harry Maclean
2023-04-07 21:42:54 +08:00
parent da9a49d6e4
commit 8091d57f03

View File

@@ -4,7 +4,6 @@ use crate::node_types::{self, EntryKind, Field, NodeTypeMap, Storage, TypeName};
use crate::trap;
use std::collections::BTreeMap as Map;
use std::collections::BTreeSet as Set;
use std::fmt;
use std::path::Path;
use tree_sitter::{Language, Node, Parser, Range, Tree};
@@ -636,13 +635,3 @@ fn traverse(tree: &Tree, visitor: &mut Visitor) {
}
}
}
// Numeric indices.
#[derive(Debug, Copy, Clone)]
struct Index(usize);
impl fmt::Display for Index {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.0)
}
}