Remove blob URL dead code and clean up more frontend code (#2199)

This commit is contained in:
Keavon Chambers 2025-01-14 13:08:47 -08:00 committed by GitHub
parent 1e62af88cd
commit 9ad6c31483
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
56 changed files with 107 additions and 247 deletions

View file

@ -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