mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-03 21:08:18 +00:00
Remove blob URL dead code and clean up more frontend code (#2199)
This commit is contained in:
parent
1e62af88cd
commit
9ad6c31483
56 changed files with 107 additions and 247 deletions
|
@ -1063,12 +1063,10 @@ impl GraphicElementRendered for Vec<Color> {
|
|||
}
|
||||
}
|
||||
|
||||
/// A segment of an svg string to allow for embedding blob urls
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub enum SvgSegment {
|
||||
Slice(&'static str),
|
||||
String(String),
|
||||
BlobUrl(u64),
|
||||
}
|
||||
|
||||
impl From<String> for SvgSegment {
|
||||
|
@ -1094,7 +1092,6 @@ impl RenderSvgSegmentList for Vec<SvgSegment> {
|
|||
result.push_str(match segment {
|
||||
SvgSegment::Slice(x) => x,
|
||||
SvgSegment::String(x) => x,
|
||||
SvgSegment::BlobUrl(_) => "<!-- Blob url not yet loaded -->",
|
||||
});
|
||||
}
|
||||
result
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue