]> Repositorios git - scryer-prolog.git/commitdiff
remove spurious Into instance
authorMark Thom <[email protected]>
Thu, 30 Mar 2017 06:53:54 +0000 (00:53 -0600)
committerMark Thom <[email protected]>
Thu, 30 Mar 2017 06:53:54 +0000 (00:53 -0600)
src/prolog/codegen.rs

index e861f115313ec6e974e0290812de27d4a46fe9aa..16a5d3dddbfb23230eb416b107c586a54241b793 100644 (file)
@@ -250,15 +250,6 @@ enum IntIndex {
     External(usize), Fail, Internal(usize)
 }
 
-impl Into<usize> for IntIndex {
-    fn into(self) -> usize {
-        match self {
-            IntIndex::Internal(i) => i,
-            _ => 0
-        }
-    }
-}
-
 struct CodeOffsets {
     constants:  HashMap<Constant, ThirdLevelIndex>,
     lists: ThirdLevelIndex,