Skip to content

Commit e6d8b83

Browse files
committed
remove unused OpPos::distance method
1 parent a315dcf commit e6d8b83

File tree

1 file changed

+0
-9
lines changed
  • crates/wasmi/src/engine/translator

1 file changed

+0
-9
lines changed

crates/wasmi/src/engine/translator/utils.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -203,15 +203,6 @@ impl OpPos {
203203
}
204204
}
205205
}
206-
207-
/// Returns the absolute distance between `self` and `other`.
208-
///
209-
/// - Returns `0` if `self == other`.
210-
/// - Returns `1` if `self` is adjacent to `other` in the sequence of instructions.
211-
/// - etc..
212-
pub fn distance(self, other: Self) -> u32 {
213-
self.0.abs_diff(other.0)
214-
}
215206
}
216207

217208
/// Types that can be converted into bits.

0 commit comments

Comments
 (0)