Remove some dead code (#3970)

This commit removes methods that are never used between crates or trait
impls like `Clone` which may have been used one day but are no longer used.
This commit is contained in:
Alex Crichton
2022-03-30 13:51:34 -05:00
committed by GitHub
parent d1d10dc8da
commit 453feb6f82
6 changed files with 11 additions and 46 deletions

View File

@@ -776,22 +776,6 @@ impl<P: PtrSize> VMOffsets<P> {
}
}
/// Target specific type for shared signature index.
#[derive(Debug, Copy, Clone)]
pub struct TargetSharedSignatureIndex(u32);
impl TargetSharedSignatureIndex {
/// Constructs `TargetSharedSignatureIndex`.
pub fn new(value: u32) -> Self {
Self(value)
}
/// Returns index value.
pub fn index(self) -> u32 {
self.0
}
}
#[cfg(test)]
mod tests {
use crate::vmoffsets::align;