chore: Avoid unused_variables annotations
Instead prefix the unused variables with an underscore.
This commit is contained in:
parent
e6bc34cf1c
commit
ede9650899
|
@ -2259,7 +2259,6 @@ impl<'a, 'gc, 'gc_context> Activation<'a, 'gc, 'gc_context> {
|
|||
Ok(FrameControl::Continue)
|
||||
}
|
||||
|
||||
#[allow(unused_variables)]
|
||||
fn action_throw(&mut self) -> Result<FrameControl<'gc>, Error<'gc>> {
|
||||
let value = self.context.avm1.pop();
|
||||
avm_debug!(
|
||||
|
|
|
@ -2789,7 +2789,6 @@ impl<'a, 'gc, 'gc_context> Activation<'a, 'gc, 'gc_context> {
|
|||
Ok(FrameControl::Continue)
|
||||
}
|
||||
|
||||
#[allow(unused_variables)]
|
||||
#[cfg(avm_debug)]
|
||||
fn op_debug(
|
||||
&mut self,
|
||||
|
@ -2810,19 +2809,17 @@ impl<'a, 'gc, 'gc_context> Activation<'a, 'gc, 'gc_context> {
|
|||
Ok(FrameControl::Continue)
|
||||
}
|
||||
|
||||
#[allow(unused_variables)]
|
||||
#[cfg(not(avm_debug))]
|
||||
fn op_debug(
|
||||
&mut self,
|
||||
method: Gc<'gc, BytecodeMethod<'gc>>,
|
||||
is_local_register: bool,
|
||||
register_name: Index<String>,
|
||||
register: u8,
|
||||
_method: Gc<'gc, BytecodeMethod<'gc>>,
|
||||
_is_local_register: bool,
|
||||
_register_name: Index<String>,
|
||||
_register: u8,
|
||||
) -> Result<FrameControl<'gc>, Error> {
|
||||
Ok(FrameControl::Continue)
|
||||
}
|
||||
|
||||
#[allow(unused_variables)]
|
||||
#[cfg(avm_debug)]
|
||||
fn op_debug_file(
|
||||
&mut self,
|
||||
|
@ -2836,17 +2833,15 @@ impl<'a, 'gc, 'gc_context> Activation<'a, 'gc, 'gc_context> {
|
|||
Ok(FrameControl::Continue)
|
||||
}
|
||||
|
||||
#[allow(unused_variables)]
|
||||
#[cfg(not(avm_debug))]
|
||||
fn op_debug_file(
|
||||
&mut self,
|
||||
method: Gc<'gc, BytecodeMethod<'gc>>,
|
||||
file_name: Index<String>,
|
||||
_method: Gc<'gc, BytecodeMethod<'gc>>,
|
||||
_file_name: Index<String>,
|
||||
) -> Result<FrameControl<'gc>, Error> {
|
||||
Ok(FrameControl::Continue)
|
||||
}
|
||||
|
||||
#[allow(unused_variables)]
|
||||
fn op_debug_line(&mut self, line_num: u32) -> Result<FrameControl<'gc>, Error> {
|
||||
avm_debug!(self.avm2(), "Line: {}", line_num);
|
||||
|
||||
|
|
|
@ -1115,8 +1115,7 @@ pub trait TDisplayObject<'gc>:
|
|||
}
|
||||
|
||||
/// Called when this object should be replaced by a PlaceObject tag.
|
||||
#[allow(unused_variables)]
|
||||
fn replace_with(&self, context: &mut UpdateContext<'_, 'gc, '_>, id: CharacterId) {
|
||||
fn replace_with(&self, _context: &mut UpdateContext<'_, 'gc, '_>, _id: CharacterId) {
|
||||
// Noop for most symbols; only shapes can replace their innards with another graphic.
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue