refactor: delete errors for state-id

because it's already deleted from state management.
This commit is contained in:
Yuniru Yuni 2023-04-25 22:58:57 +09:00
parent 6169229e60
commit 3a1fd683d6
No known key found for this signature in database
GPG key ID: 33E3309A80C571CD

View file

@ -39,10 +39,6 @@ pub enum WhisperError {
InvalidText,
/// Creating a state pointer failed. Check stderr for more information.
FailedToCreateState,
/// State pointer ID already exists.
StateIdAlreadyExists,
/// State pointer ID does not exist.
StateIdDoesNotExist,
}
impl From<Utf8Error> for WhisperError {
@ -105,8 +101,6 @@ impl std::fmt::Display for WhisperError {
"Whisper failed to convert the provided text into tokens."
),
FailedToCreateState => write!(f, "Creating a state pointer failed."),
StateIdAlreadyExists => write!(f, "State pointer ID already exists."),
StateIdDoesNotExist => write!(f, "State pointer ID does not exist."),
GenericError(c_int) => write!(
f,
"Generic whisper error. Varies depending on the function. Error code: {}",