core: Remove duplicated functions

Duplicated functions have been removed (and replaced by corresponding
calls to the other functions).
This commit is contained in:
Kornelius Rohrschneider 2023-04-21 19:50:02 +02:00 committed by Nathan Adams
parent 2d629dbf72
commit 5352c86202
1 changed files with 3 additions and 10 deletions

View File

@ -1017,7 +1017,7 @@ impl<'gc> MovieClip<'gc> {
}
pub fn current_frame(self) -> FrameNumber {
self.0.read().current_frame
self.0.read().current_frame()
}
/// Return the current scene.
@ -1174,7 +1174,7 @@ impl<'gc> MovieClip<'gc> {
}
pub fn total_frames(self) -> FrameNumber {
self.0.read().static_data.total_frames
self.0.read().total_frames()
}
#[allow(dead_code)]
@ -1197,14 +1197,7 @@ impl<'gc> MovieClip<'gc> {
}
pub fn frames_loaded(self) -> i32 {
(self
.0
.read()
.static_data
.preload_progress
.read()
.cur_preload_frame) as i32
- 1
self.0.read().frames_loaded()
}
pub fn total_bytes(self) -> u32 {