[librsvg] state: remove unused C function
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] state: remove unused C function
- Date: Sat, 28 Jul 2018 15:52:01 +0000 (UTC)
commit 0ca31ca181698fa5d34cd75bce0921a00fbd53a0
Author: Paolo Borelli <pborelli gnome org>
Date: Sat Jul 28 17:41:16 2018 +0200
state: remove unused C function
librsvg/rsvg-private.h | 15 ---------------
rsvg_internals/src/lib.rs | 1 -
rsvg_internals/src/state.rs | 15 ---------------
3 files changed, 31 deletions(-)
---
diff --git a/librsvg/rsvg-private.h b/librsvg/rsvg-private.h
index 42c5b335..4e7b6df7 100644
--- a/librsvg/rsvg-private.h
+++ b/librsvg/rsvg-private.h
@@ -234,9 +234,6 @@ typedef enum {
RSVG_NODE_TYPE_FILTER_PRIMITIVE_LAST /* just a marker; not a valid type */
} RsvgNodeType;
-/* Defined in rsvg_internals/src/state.rs */
-typedef struct _RsvgComputedValues *RsvgComputedValues;
-
typedef void (* CNodeSetAtts) (RsvgNode *node, gpointer impl, RsvgHandle *handle, RsvgPropertyBag pbag);
typedef void (* CNodeFree) (gpointer impl);
@@ -302,18 +299,6 @@ void rsvg_node_children_iter_end (RsvgNodeChildrenIter *iter);
G_GNUC_INTERNAL
gboolean rsvg_node_svg_get_size (RsvgNode *node, double dpi_x, double dpi_y, int *out_width, int
*out_height);
-/* Implemented in rust/src/state.rs */
-G_GNUC_INTERNAL
-guint32 rsvg_computed_values_get_flood_color_argb (RsvgComputedValues *values);
-
-/* Implemented in rust/src/state.rs */
-G_GNUC_INTERNAL
-guint8 rsvg_computed_values_get_flood_opacity (RsvgComputedValues *values);
-
-/* Implemented in rust/src/state.rs */
-G_GNUC_INTERNAL
-guint32 rsvg_computed_values_get_lighting_color_argb (RsvgComputedValues *values);
-
typedef void (*RsvgPropertyBagEnumFunc) (const char *key, const char *value, gpointer user_data);
/* Implemented in rust/src/property_bag.rs */
diff --git a/rsvg_internals/src/lib.rs b/rsvg_internals/src/lib.rs
index 25bcf9ea..a104b74b 100644
--- a/rsvg_internals/src/lib.rs
+++ b/rsvg_internals/src/lib.rs
@@ -65,7 +65,6 @@ pub use property_bag::{
};
pub use state::{
- rsvg_computed_values_get_lighting_color_argb,
rsvg_state_free,
rsvg_state_new,
rsvg_state_parse_style_pair,
diff --git a/rsvg_internals/src/state.rs b/rsvg_internals/src/state.rs
index 7a4c501e..767628bd 100644
--- a/rsvg_internals/src/state.rs
+++ b/rsvg_internals/src/state.rs
@@ -7,7 +7,6 @@ use std::collections::HashSet;
use std::str::FromStr;
use attributes::Attribute;
-use color::rgba_to_argb;
use error::*;
use handle::RsvgHandle;
use iri::IRI;
@@ -144,9 +143,6 @@ pub struct SpecifiedValues {
pub xml_space: SpecifiedValue<XmlSpace>, // not a property, but a non-presentation attribute
}
-// Used to transfer pointers to a ComputedValues to the C code
-pub type RsvgComputedValues = *const ComputedValues;
-
#[derive(Debug, Clone)]
pub struct ComputedValues {
pub baseline_shift: BaselineShift,
@@ -1612,14 +1608,3 @@ pub fn parse_style_attrs(
}
}
}
-
-#[no_mangle]
-pub extern "C" fn rsvg_computed_values_get_lighting_color_argb(values: RsvgComputedValues) -> u32 {
- assert!(!values.is_null());
- let values = unsafe { &*values };
-
- match values.lighting_color {
- LightingColor(cssparser::Color::CurrentColor) => rgba_to_argb(values.color.0),
- LightingColor(cssparser::Color::RGBA(ref rgba)) => rgba_to_argb(*rgba),
- }
-}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]