diff --git a/nac3core/src/symbol_resolver.rs b/nac3core/src/symbol_resolver.rs index 541b9f7c..bab823c1 100644 --- a/nac3core/src/symbol_resolver.rs +++ b/nac3core/src/symbol_resolver.rs @@ -147,26 +147,6 @@ impl SymbolValue { } } - // pub fn evaluate_cmp_op( - // &self, - // op: &Cmpop, - // other: &SymbolValue, - // ) -> Result { - // match (self, other, op) { - // // // Integer comparisons - // // (SymbolValue::I32(a), SymbolValue::I32(b), Cmpop::Eq) => Ok(SymbolValue::Bool(a == b)), - // // (SymbolValue::I32(a), SymbolValue::I32(b), Cmpop::NotEq) => Ok(SymbolValue::Bool(a != b)), - // // String comparisons - // (SymbolValue::Str(a), SymbolValue::Str(b), Cmpop::Eq) => Ok(SymbolValue::Bool(a == b)), - // (SymbolValue::Str(a), SymbolValue::Str(b), Cmpop::NotEq) => Ok(SymbolValue::Bool(a != b)), - // // Add other types and comparison operators as needed - // _ => Err(format!( - // "Unsupported comparison operation for {:?} and {:?} with operator {:?}", - // self, other, op - // )), - // } - // } - /// Returns the [`Type`] representing the data type of this value. pub fn get_type(&self, primitives: &PrimitiveStore, unifier: &mut Unifier) -> Type { match self {