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