[librsvg: 7/32] Remove unused LoadingError::Cairo
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 7/32] Remove unused LoadingError::Cairo
- Date: Fri, 4 Dec 2020 21:11:30 +0000 (UTC)
commit 6c58ef3968a24f7af2194fd889d246c7859367f7
Author: Federico Mena Quintero <federico gnome org>
Date: Wed Nov 25 12:17:53 2020 -0600
Remove unused LoadingError::Cairo
src/error.rs | 12 ------------
1 file changed, 12 deletions(-)
---
diff --git a/src/error.rs b/src/error.rs
index accaae22..977f48be 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -336,9 +336,6 @@ pub enum LoadingError {
/// An invalid stylesheet was used.
BadCss,
- /// A Cairo error happened during loading.
- Cairo(cairo::Status),
-
// FIXME: only used in load_image()
EmptyData,
@@ -371,7 +368,6 @@ impl fmt::Display for LoadingError {
LoadingError::BadDataUrl => write!(f, "invalid data: URL"),
LoadingError::BadStylesheet => write!(f, "invalid stylesheet"),
LoadingError::BadCss => write!(f, "invalid CSS"),
- LoadingError::Cairo(status) => write!(f, "cairo error: {:?}", status),
LoadingError::EmptyData => write!(f, "empty data"),
LoadingError::SvgHasNoElements => write!(f, "SVG has no elements"),
LoadingError::RootElementIsNotSvg => write!(f, "root element is not <svg>"),
@@ -382,14 +378,6 @@ impl fmt::Display for LoadingError {
}
}
-impl From<cairo::Status> for LoadingError {
- fn from(e: cairo::Status) -> LoadingError {
- assert!(e != cairo::Status::Success);
-
- LoadingError::Cairo(e)
- }
-}
-
impl From<glib::Error> for LoadingError {
fn from(e: glib::Error) -> LoadingError {
LoadingError::Glib(e)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]