core: Remove unused parameter of `Avm1Button::from_swf_tag`

This commit is contained in:
relrelb 2022-06-11 13:43:57 +03:00 committed by Mike Welsh
parent e78bf30d58
commit 29ae39a2d1
2 changed files with 2 additions and 7 deletions

View File

@ -42,7 +42,6 @@ impl<'gc> Avm1Button<'gc> {
pub fn from_swf_tag(
button: &swf::Button,
source_movie: &SwfSlice,
_library: &crate::library::Library<'gc>,
gc_context: gc_arena::MutationContext<'gc, '_>,
) -> Self {
let mut actions = vec![];

View File

@ -2657,12 +2657,8 @@ impl<'gc, 'a> MovieClipData<'gc> {
let movie = self.movie();
let library = context.library.library_for_movie_mut(movie.clone());
if library.avm_type() == AvmType::Avm1 {
let button = Avm1Button::from_swf_tag(
&swf_button,
&self.static_data.swf,
context.library,
context.gc_context,
);
let button =
Avm1Button::from_swf_tag(&swf_button, &self.static_data.swf, context.gc_context);
context
.library
.library_for_movie_mut(movie)