[librsvg] Remove unused imports
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] Remove unused imports
- Date: Mon, 4 Sep 2017 21:54:30 +0000 (UTC)
commit 4583ec9efab99e8b36107fb718d0c193b4c85326
Author: Federico Mena Quintero <federico gnome org>
Date: Mon Sep 4 10:08:04 2017 -0500
Remove unused imports
rust/src/lib.rs | 1 -
rust/src/marker.rs | 1 -
rust/src/parse_transform.lalrpop | 3 +--
rust/src/path_builder.rs | 1 -
rust/src/path_parser.rs | 7 -------
rust/src/transform.rs | 1 -
6 files changed, 1 insertions(+), 13 deletions(-)
---
diff --git a/rust/src/lib.rs b/rust/src/lib.rs
index d6d8586..a233773 100644
--- a/rust/src/lib.rs
+++ b/rust/src/lib.rs
@@ -3,7 +3,6 @@ extern crate cairo_sys;
extern crate cssparser;
extern crate glib;
extern crate glib_sys;
-extern crate lalrpop_util;
extern crate libc;
#[macro_use]
diff --git a/rust/src/marker.rs b/rust/src/marker.rs
index 4376db4..c5282ff 100644
--- a/rust/src/marker.rs
+++ b/rust/src/marker.rs
@@ -1147,7 +1147,6 @@ mod directionality_tests {
#[cfg(test)]
mod marker_tests {
use super::*;
- extern crate cairo;
#[test]
fn emits_for_open_subpath () {
diff --git a/rust/src/parse_transform.lalrpop b/rust/src/parse_transform.lalrpop
index a8e119f..6129610 100644
--- a/rust/src/parse_transform.lalrpop
+++ b/rust/src/parse_transform.lalrpop
@@ -7,8 +7,7 @@
use std::f64::consts::*;
use std::str::FromStr;
-use ::cairo;
-use cairo::Matrix;
+use cairo;
use cairo::MatrixTrait;
#[LALR]
diff --git a/rust/src/path_builder.rs b/rust/src/path_builder.rs
index 30e4e49..f4361df 100644
--- a/rust/src/path_builder.rs
+++ b/rust/src/path_builder.rs
@@ -1,4 +1,3 @@
-use ::cairo;
use ::cairo_sys;
use std::f64;
diff --git a/rust/src/path_parser.rs b/rust/src/path_parser.rs
index eaa1fed..ad3b35b 100644
--- a/rust/src/path_parser.rs
+++ b/rust/src/path_parser.rs
@@ -1,13 +1,8 @@
-extern crate libc;
-extern crate glib;
-
use std::str;
use std::str::Chars;
use std::iter::Enumerate;
use path_builder::*;
-extern crate cairo;
-
struct PathParser<'b> {
chars_enumerator: Enumerate<Chars<'b>>,
lookahead: Option <char>, /* None if we are in EOF */
@@ -1008,8 +1003,6 @@ pub fn parse_path_into_builder (path_str: &str, builder: &mut RsvgPathBuilder) -
mod tests {
use super::*;
- extern crate cairo;
-
fn print_error (error: &ParseError, path_str: &str) {
let prefix = "Error in \"";
diff --git a/rust/src/transform.rs b/rust/src/transform.rs
index dac98fc..822bfc3 100644
--- a/rust/src/transform.rs
+++ b/rust/src/transform.rs
@@ -5,7 +5,6 @@ use ::libc;
use std::f64::consts::*;
-use cairo::Matrix;
use cairo::MatrixTrait;
use parse_transform::*;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]