Removed various bits of unused code

This commit is contained in:
Emmanuel BENOîT 2023-01-11 07:20:29 +01:00
parent 16151bd326
commit ecc8f2ec8b
2 changed files with 2 additions and 30 deletions
src/interpreter

View file

@ -2,11 +2,10 @@ use std::{cell::RefCell, collections::HashMap, fmt::Display, rc::Rc};
use crate::{
errors::{ErrorKind, SloxError, SloxResult},
interpreter::EnvironmentRef,
tokens::{Token, TokenType},
tokens::Token,
};
use super::{functions::Function, Callable, Environment, InterpreterState, Value};
use super::{functions::Function, Callable, InterpreterState, Value};
/// A Lox class.
#[derive(Debug, Clone)]
@ -25,13 +24,6 @@ pub struct Instance {
fields: HashMap<String, Value>,
}
/// A method bound to an instance.
#[derive(Debug, Clone)]
pub struct BoundMethod {
instance: Value,
method: String,
}
/* -------------------- *
* Class implementation *
* -------------------- */