From f4d2839dc780023952809b8d7dcccb71df8ce239 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Adri=C3=A1n=20Arroyo=20Calle?= Date: Mon, 27 May 2024 19:52:02 +0200 Subject: [PATCH] Fix warnings of dead code --- src/machine/machine_indices.rs | 2 -- src/machine/unify.rs | 24 ------------------------ 2 files changed, 26 deletions(-) diff --git a/src/machine/machine_indices.rs b/src/machine/machine_indices.rs index 830cc91f..856c7766 100644 --- a/src/machine/machine_indices.rs +++ b/src/machine/machine_indices.rs @@ -18,8 +18,6 @@ use std::collections::BTreeSet; use std::ops::{Deref, DerefMut}; use crate::types::*; -#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] -pub(crate) struct OrderedOpDirKey(pub(crate) Atom, pub(crate) Fixity); // 7.2 #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] diff --git a/src/machine/unify.rs b/src/machine/unify.rs index b045552b..7cd3df06 100644 --- a/src/machine/unify.rs +++ b/src/machine/unify.rs @@ -453,30 +453,6 @@ pub(crate) trait Unifier: DerefMut { } } - fn unify_big_num(&mut self, n1: TypedArenaPtr, value: HeapCellValue) - where - N: PartialEq + PartialEq + PartialEq + ArenaAllocated, - { - if let Some(r) = value.as_var() { - Self::bind(self, r, typed_arena_ptr_as_cell!(n1)); - return; - } - - match Number::try_from(value) { - Ok(n2) => match n2 { - Number::Fixnum(n2) if *n1 == n2.get_num() => {} - Number::Integer(n2) if *n1 == *n2 => {} - Number::Rational(n2) if *n1 == *n2 => {} - _ => { - self.fail = true; - } - }, - Err(_) => { - self.fail = true; - } - } - } - fn unify_big_integer(&mut self, n1: TypedArenaPtr, value: HeapCellValue) { if let Some(r) = value.as_var() { Self::bind(self, r, typed_arena_ptr_as_cell!(n1)); -- 2.54.0