[librsvg: 1/32] Remove unused RenderingError::CircularReference




commit 42ee8d137514a60cd2c772a63ab639fcc4d659fd
Author: Federico Mena Quintero <federico gnome org>
Date:   Wed Nov 25 10:45:42 2020 -0600

    Remove unused RenderingError::CircularReference
    
    This error is no longer propagated to the public API; the code catches
    all AcquireError::CircularReference internally and ignores rendering
    for the elements that caused it.

 src/error.rs | 5 -----
 1 file changed, 5 deletions(-)
---
diff --git a/src/error.rs b/src/error.rs
index 2a6a5521..36c086f7 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -122,10 +122,6 @@ pub enum RenderingError {
     /// A Cairo error happened during rendering.
     Cairo(cairo::Status),
 
-    /// There is a circular reference between elements.
-    // FIXME: should be internal only.
-    CircularReference,
-
     /// The maximum number of rendered objects was reached.
     ///
     /// Librsvg has a limit on the number of rendered objects, so that malicious
@@ -151,7 +147,6 @@ impl error::Error for RenderingError {}
 impl fmt::Display for RenderingError {
     fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
         match *self {
-            RenderingError::CircularReference => write!(f, "circular reference"),
             RenderingError::InstancingLimit => write!(f, "instancing limit"),
             RenderingError::InvalidHref => write!(f, "invalid href"),
             RenderingError::OutOfMemory => write!(f, "out of memory"),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]