From 914e3ba096f9c52557215e4c6543c77e4839a252 Mon Sep 17 00:00:00 2001 From: ram Date: Thu, 5 Dec 2024 09:56:24 +0000 Subject: [PATCH] Remove commented evaluate_cmp_op function --- nac3core/src/symbol_resolver.rs | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/nac3core/src/symbol_resolver.rs b/nac3core/src/symbol_resolver.rs index 541b9f7..bab823c 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 {