Remove dead code on all now-in-use structs and methods.
This commit is contained in:
parent
e354c53075
commit
ccacc540bf
|
@ -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()
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
///
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#![allow(clippy::useless_attribute)]
|
||||
|
||||
#[allow(dead_code)]
|
||||
#[derive(Debug, PartialEq, Clone, Copy, FromPrimitive)]
|
||||
pub enum OpCode {
|
||||
Add = 0xA0,
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue