Remove dead code on all now-in-use structs and methods.

This commit is contained in:
David Wendt 2020-07-18 16:12:24 -04:00
parent e354c53075
commit ccacc540bf
4 changed files with 0 additions and 5 deletions

View File

@ -93,7 +93,6 @@ impl<'gc> BytecodeMethod<'gc> {
}
/// Get the underlying ABC file.
#[allow(dead_code)]
pub fn abc(&self) -> Rc<AbcFile> {
self.txunit.abc()
}

View File

@ -8,7 +8,6 @@ use gc_arena::{Collect, CollectionContext};
/// Represents a single slot on an object.
#[derive(Clone, Debug)]
#[allow(dead_code)]
pub enum Slot<'gc> {
/// An unoccupied slot.
///

View File

@ -1,6 +1,5 @@
#![allow(clippy::useless_attribute)]
#[allow(dead_code)]
#[derive(Debug, PartialEq, Clone, Copy, FromPrimitive)]
pub enum OpCode {
Add = 0xA0,

View File

@ -100,7 +100,6 @@ impl<R: Read> Reader<R> {
self.read_u30()
}
#[allow(dead_code)]
fn read_i24(&mut self) -> Result<i32> {
Ok(i32::from(self.read_u8()? as i8)
| (i32::from(self.read_u8()? as i8) << 8)
@ -527,7 +526,6 @@ impl<R: Read> Reader<R> {
})
}
#[allow(dead_code)]
pub fn read_op(&mut self) -> Result<Option<Op>> {
use crate::avm2::opcode::OpCode;
use num_traits::FromPrimitive;