[fine] Remove dead code

This commit is contained in:
John Doty 2024-03-25 09:26:08 -07:00
parent 13bb04238f
commit f3a8203be3

View file

@ -31,20 +31,7 @@ pub struct Error {
}
impl Error {
pub fn new<T>(file: Rc<str>, line: usize, column: usize, pos: usize, message: T) -> Self
where
T: ToString,
{
Error {
file,
start: (line, column),
end: (line, column),
span: (pos, pos),
message: message.to_string(),
}
}
pub fn new_spanned<T>(
pub fn new<T>(
file: Rc<str>,
start: (usize, usize),
end: (usize, usize),
@ -815,7 +802,7 @@ impl Semantics {
{
let start = self.lines.position(start_pos);
let end = self.lines.position(end_pos);
let error = Rc::new(Error::new_spanned(
let error = Rc::new(Error::new(
self.file.clone(),
start,
end,