[fine] Remove dead code
This commit is contained in:
parent
13bb04238f
commit
f3a8203be3
1 changed files with 2 additions and 15 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue