Remove unused CodeSink methods

This commit is contained in:
bjorn3
2022-01-11 14:45:21 +01:00
parent 88baac4ca6
commit 354c4f7bf8
4 changed files with 4 additions and 60 deletions

View File

@@ -2079,21 +2079,9 @@ mod test {
relocs: Vec<(CodeOffset, Reloc)>,
}
impl CodeSink for TestCodeSink {
fn offset(&self) -> CodeOffset {
self.offset
}
fn put1(&mut self, _: u8) {
self.offset += 1;
}
fn put2(&mut self, _: u16) {
self.offset += 2;
}
fn put4(&mut self, _: u32) {
self.offset += 4;
}
fn put8(&mut self, _: u64) {
self.offset += 8;
}
fn reloc_external(&mut self, _: SourceLoc, r: Reloc, _: &ExternalName, _: Addend) {
self.relocs.push((self.offset, r));
}