Remove usvg from Cargo.tomls

This commit is contained in:
Philip Daniels 2022-04-03 21:47:15 +01:00
parent 8199a60e4f
commit dee2579830
5 changed files with 1 additions and 21 deletions

2
Cargo.lock generated
View File

@ -1929,7 +1929,6 @@ dependencies = [
"unicode-segmentation", "unicode-segmentation",
"unicode-width", "unicode-width",
"ureq", "ureq",
"usvg",
"uuid", "uuid",
"xi-rope", "xi-rope",
"xi-unicode", "xi-unicode",
@ -2030,7 +2029,6 @@ dependencies = [
"toml", "toml",
"unicode-segmentation", "unicode-segmentation",
"unicode-width", "unicode-width",
"usvg",
"xi-rope", "xi-rope",
"xi-unicode", "xi-unicode",
] ]

View File

@ -30,7 +30,6 @@ im = { version = "15.0.0", features = ["serde"] }
crossbeam-channel = "0.5.0" crossbeam-channel = "0.5.0"
crossbeam-utils = "0.8.4" crossbeam-utils = "0.8.4"
regex = "1.4.2" regex = "1.4.2"
usvg = "0.14.0"
jsonrpc-lite = "0.5.0" jsonrpc-lite = "0.5.0"
bit-vec = "0.5.0" bit-vec = "0.5.0"
parking_lot = { version = "0.11.0", features = ["deadlock_detection"] } parking_lot = { version = "0.11.0", features = ["deadlock_detection"] }

View File

@ -6,7 +6,7 @@
WidgetId, WidgetId,
}; };
use druid::{ use druid::{
Data, Env, EventCtx, Size, Data, Env, EventCtx,
}; };
use fuzzy_matcher::skim::SkimMatcherV2; use fuzzy_matcher::skim::SkimMatcherV2;
use fuzzy_matcher::FuzzyMatcher; use fuzzy_matcher::FuzzyMatcher;
@ -17,7 +17,6 @@
use std::path::PathBuf; use std::path::PathBuf;
use std::sync::Arc; use std::sync::Arc;
use std::cmp::Ordering; use std::cmp::Ordering;
use usvg;
use uuid::Uuid; use uuid::Uuid;
use crate::{ use crate::{
@ -1008,10 +1007,3 @@ fn filter_items(
items items
} }
} }
pub fn svg_tree_size(svg_tree: &usvg::Tree) -> Size {
match *svg_tree.root().borrow() {
usvg::NodeKind::Svg(svg) => Size::new(svg.size.width(), svg.size.height()),
_ => Size::ZERO,
}
}

View File

@ -28,7 +28,6 @@ im = { version = "15.0.0", features = ["serde"] }
crossbeam-channel = "0.5.0" crossbeam-channel = "0.5.0"
crossbeam-utils = "0.8.4" crossbeam-utils = "0.8.4"
regex = "1.4.2" regex = "1.4.2"
usvg = "0.14.0"
jsonrpc-lite = "0.5.0" jsonrpc-lite = "0.5.0"
bit-vec = "0.5.0" bit-vec = "0.5.0"
parking_lot = { version = "0.11.0", features = ["deadlock_detection"] } parking_lot = { version = "0.11.0", features = ["deadlock_detection"] }

View File

@ -22,7 +22,6 @@
}, },
}; };
use lsp_types::SymbolKind; use lsp_types::SymbolKind;
use usvg;
use crate::{ use crate::{
editor::view::LapceEditorView, editor::view::LapceEditorView,
@ -940,10 +939,3 @@ pub fn new(
} }
} }
} }
pub fn svg_tree_size(svg_tree: &usvg::Tree) -> Size {
match *svg_tree.root().borrow() {
usvg::NodeKind::Svg(svg) => Size::new(svg.size.width(), svg.size.height()),
_ => Size::ZERO,
}
}