[librsvg] path-builder: remove C export and .h file
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] path-builder: remove C export and .h file
- Date: Tue, 3 Apr 2018 10:05:53 +0000 (UTC)
commit b0523307225352199414c3d29c1a7c39a8113fba
Author: Paolo Borelli <pborelli gnome org>
Date: Tue Apr 3 10:58:56 2018 +0200
path-builder: remove C export and .h file
The C wrapper is unused, the calling code was ported to rust
some time ago.
Makefile.am | 1 -
librsvg/rsvg-base.c | 1 -
librsvg/rsvg-cairo-clip.c | 1 -
librsvg/rsvg-cairo-draw.c | 1 -
librsvg/rsvg-path-builder.h | 47 --------------------------------------
librsvg/rsvg-private.h | 1 -
rsvg_internals/src/lib.rs | 2 --
rsvg_internals/src/path_builder.rs | 15 ------------
8 files changed, 69 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 94845600..ef5a85d5 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -49,7 +49,6 @@ librsvg_@RSVG_API_MAJOR_VERSION@_la_SOURCES = \
librsvg/rsvg-marker.h \
librsvg/rsvg-mask.h \
librsvg/rsvg-paint-server.h \
- librsvg/rsvg-path-builder.h \
librsvg/rsvg-private.h \
librsvg/rsvg-shapes.h \
librsvg/rsvg-size-callback.c \
diff --git a/librsvg/rsvg-base.c b/librsvg/rsvg-base.c
index 9d148e68..0d460280 100644
--- a/librsvg/rsvg-base.c
+++ b/librsvg/rsvg-base.c
@@ -44,7 +44,6 @@
#include <limits.h>
#include <stdlib.h>
-#include "rsvg-path-builder.h"
#include "rsvg-paint-server.h"
#ifdef G_OS_WIN32
diff --git a/librsvg/rsvg-cairo-clip.c b/librsvg/rsvg-cairo-clip.c
index a0739d11..9d2bc307 100644
--- a/librsvg/rsvg-cairo-clip.c
+++ b/librsvg/rsvg-cairo-clip.c
@@ -33,7 +33,6 @@
#include "rsvg-cairo-clip.h"
#include "rsvg-cairo-render.h"
#include "rsvg-styles.h"
-#include "rsvg-path-builder.h"
#include "rsvg-structure.h"
#include <math.h>
diff --git a/librsvg/rsvg-cairo-draw.c b/librsvg/rsvg-cairo-draw.c
index bb6158e5..d77a333f 100644
--- a/librsvg/rsvg-cairo-draw.c
+++ b/librsvg/rsvg-cairo-draw.c
@@ -33,7 +33,6 @@
#include "rsvg-cairo-render.h"
#include "rsvg-cairo-clip.h"
#include "rsvg-styles.h"
-#include "rsvg-path-builder.h"
#include "rsvg-filter.h"
#include "rsvg-structure.h"
diff --git a/librsvg/rsvg-private.h b/librsvg/rsvg-private.h
index dc5789ed..79940def 100644
--- a/librsvg/rsvg-private.h
+++ b/librsvg/rsvg-private.h
@@ -31,7 +31,6 @@
#include "rsvg.h"
#include "rsvg-attributes.h"
-#include "rsvg-path-builder.h"
#include <libxml/SAX.h>
#include <libxml/xmlmemory.h>
diff --git a/rsvg_internals/src/lib.rs b/rsvg_internals/src/lib.rs
index acac1d1c..4bb0ed73 100644
--- a/rsvg_internals/src/lib.rs
+++ b/rsvg_internals/src/lib.rs
@@ -104,8 +104,6 @@ pub use parsers::{
rsvg_css_parse_url,
};
-pub use path_builder::rsvg_path_builder_add_to_cairo_context;
-
pub use pattern::rsvg_node_pattern_new;
pub use property_bag::{
diff --git a/rsvg_internals/src/path_builder.rs b/rsvg_internals/src/path_builder.rs
index ec668314..746375d5 100644
--- a/rsvg_internals/src/path_builder.rs
+++ b/rsvg_internals/src/path_builder.rs
@@ -1,6 +1,4 @@
use cairo;
-use cairo_sys;
-use glib::translate::*;
use std::f64;
use std::f64::consts::*;
@@ -295,19 +293,6 @@ fn clamp(val: f64, low: f64, high: f64) -> f64 {
}
}
-#[no_mangle]
-pub extern "C" fn rsvg_path_builder_add_to_cairo_context(
- raw_builder: *mut RsvgPathBuilder,
- raw_cr: *mut cairo_sys::cairo_t,
-) {
- assert!(!raw_builder.is_null());
- assert!(!raw_cr.is_null());
-
- let builder: &mut RsvgPathBuilder = unsafe { &mut (*raw_builder) };
- let cr = unsafe { cairo::Context::from_glib_none(raw_cr) };
- builder.to_cairo(&cr);
-}
-
#[cfg(test)]
mod tests {
use super::*;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]