Skip to content

Commit

Permalink
Remove unused code from the write module (#5674)
Browse files Browse the repository at this point in the history
The DisplayValuesWithDelimiter struct is no longer used.
  • Loading branch information
elliottt authored Jan 31, 2023
1 parent f110bd9 commit 10fcd14
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions cranelift/codegen/src/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -525,21 +525,6 @@ impl<'a> fmt::Display for DisplayValues<'a> {
}
}

struct DisplayValuesWithDelimiter<'a>(&'a [Value], char);

impl<'a> fmt::Display for DisplayValuesWithDelimiter<'a> {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
for (i, val) in self.0.iter().enumerate() {
if i == 0 {
write!(f, "{}", val)?;
} else {
write!(f, "{}{}", self.1, val)?;
}
}
Ok(())
}
}

#[cfg(test)]
mod tests {
use crate::cursor::{Cursor, CursorPosition, FuncCursor};
Expand Down

0 comments on commit 10fcd14

Please sign in to comment.