]> Repositorios git - scryer-prolog.git/commitdiff
Fixed stackoverflow error
authorFayeed Pawaskar <[email protected]>
Mon, 24 Jul 2023 06:49:41 +0000 (12:19 +0530)
committerFayeed Pawaskar <[email protected]>
Mon, 24 Jul 2023 06:49:41 +0000 (12:19 +0530)
src/arena.rs

index fbbcd72aa59a510f2ce2fb3c511dd5cb639e0b2d..3d321c5a667a09126e546fbe767072201dd49efb 100644 (file)
@@ -252,26 +252,6 @@ impl<T: ?Sized + ArenaAllocated> TypedArenaPtr<T> {
         self.0.as_ptr()
     }
 
-    #[inline]
-    pub fn to_i64(&self) -> Option<i64> {
-        self.to_i64()
-    }
-
-    #[inline]
-    pub fn to_u32(&self) -> Option<u32> {
-        self.to_u32()
-    }
-
-    #[inline]
-    pub fn to_usize(&self) -> Option<usize> {
-        self.to_usize()
-    }
-
-    #[inline]
-    pub fn to_isize(&self) -> Option<isize> {
-        self.to_isize()
-    }
-
     #[inline]
     pub fn header_ptr(&self) -> *const ArenaHeader {
         let mut ptr = self.as_ptr() as *const u8 as usize;