[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 {
|
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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue