[librsvg: 2/32] Remove unused RenderingError::InvalidHref
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 2/32] Remove unused RenderingError::InvalidHref
- Date: Fri, 4 Dec 2020 21:11:30 +0000 (UTC)
commit 86580776d76d28a097ceadaf288f26ed42d1cea4
Author: Federico Mena Quintero <federico gnome org>
Date: Wed Nov 25 10:49:02 2020 -0600
Remove unused RenderingError::InvalidHref
src/error.rs | 4 ----
1 file changed, 4 deletions(-)
---
diff --git a/src/error.rs b/src/error.rs
index 36c086f7..6aa53095 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -131,9 +131,6 @@ pub enum RenderingError {
/// Tried to reference an SVG element from a fragment identifier that is incorrect.
InvalidId(DefsLookupErrorKind),
- // FIXME: unused.
- InvalidHref,
-
/// Not enough memory was available for rendering.
// FIXME: right now this is only returned from pixbuf_utils.rs
OutOfMemory,
@@ -148,7 +145,6 @@ impl fmt::Display for RenderingError {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match *self {
RenderingError::InstancingLimit => write!(f, "instancing limit"),
- RenderingError::InvalidHref => write!(f, "invalid href"),
RenderingError::OutOfMemory => write!(f, "out of memory"),
RenderingError::HandleIsNotLoaded => write!(f, "SVG data is not loaded into handle"),
RenderingError::Cairo(ref status) => write!(f, "cairo error: {:?}", status),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]