From 47a806a5ee5b5c9592f364b69c612f6cf5c93dc8 Mon Sep 17 00:00:00 2001 From: Nathan Adams Date: Tue, 30 Jun 2020 21:28:32 +0200 Subject: [PATCH] avm1: Removed errors that are no longer possible to run into --- core/src/avm1/error.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/core/src/avm1/error.rs b/core/src/avm1/error.rs index 83b50df9e..0e757dd58 100644 --- a/core/src/avm1/error.rs +++ b/core/src/avm1/error.rs @@ -9,15 +9,6 @@ pub enum Error<'gc> { #[error("Couldn't parse SWF. This may or may not be a bug in Ruffle, please help us by reporting it to https://github.com/ruffle-rs/ruffle/issues and include the swf that triggered it.")] InvalidSwf(#[from] swf::error::Error), - #[error("No stack frame to execute. This is probably a bug in Ruffle, please report it to https://github.com/ruffle-rs/ruffle/issues and include the swf that triggered it.")] - NoStackFrame, - - #[error("Attempted to run a frame not on the current interpreter stack. This is probably a bug in Ruffle, please report it to https://github.com/ruffle-rs/ruffle/issues and include the swf that triggered it.")] - FrameNotOnStack, - - #[error("Attempted to execute the same frame twice. This is probably a bug in Ruffle, please report it to https://github.com/ruffle-rs/ruffle/issues and include the swf that triggered it.")] - AlreadyExecutingFrame, - #[error("A script has thrown a custom error.")] ThrownValue(Value<'gc>), } @@ -27,9 +18,6 @@ impl Error<'_> { match self { Error::PrototypeRecursionLimit => true, Error::InvalidSwf(_) => true, - Error::NoStackFrame => true, - Error::FrameNotOnStack => true, - Error::AlreadyExecutingFrame => false, Error::ThrownValue(_) => false, } }