Skip to content

Commit

Permalink
Remove unused implementation of alpha_eq
Browse files Browse the repository at this point in the history
  • Loading branch information
BinderDavid committed Apr 8, 2024
1 parent 93fb778 commit c87cdc2
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lang/syntax/src/common/de_bruijn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ use std::fmt;
use std::ops::{Bound, RangeBounds};
use std::rc::Rc;

use super::equiv::*;

/// Two-dimensional De-Bruijn index
///
/// The first component counts the number of binder lists in scope between the variable
Expand Down Expand Up @@ -155,12 +153,6 @@ impl<R: ShiftRange> ShiftRangeExt for R {
}
}

impl AlphaEq for Idx {
fn alpha_eq(&self, other: &Self) -> bool {
self.fst == other.fst && self.snd == other.snd
}
}

impl fmt::Display for Idx {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "{}.{}", self.fst, self.snd)
Expand Down

0 comments on commit c87cdc2

Please sign in to comment.