Delete the orphaned graphic accessor, introspection helper, and fn type macro

This commit is contained in:
Dennis Kobert
2026-09-03 13:07:03 +00:00
parent 8fa250a9f9
commit 1be90ebb4a
3 changed files with 0 additions and 33 deletions

View File

@@ -69,18 +69,6 @@ macro_rules! future {
};
}
#[macro_export]
macro_rules! fn_type {
($type:ty) => {
$crate::Type::Fn(Box::new(concrete!(())), Box::new(concrete!($type)))
};
($in_type:ty, $type:ty, alias: $outname:ty) => {
$crate::Type::Fn(Box::new(concrete!($in_type)), Box::new(concrete!($type, $outname)))
};
($in_type:ty, $type:ty) => {
$crate::Type::Fn(Box::new(concrete!($in_type)), Box::new(concrete!($type)))
};
}
#[macro_export]
macro_rules! fn_type_fut {
($type:ty) => {

View File

@@ -584,13 +584,6 @@ impl<'e> Graphic<'e> {
}
}
pub fn as_vector_mut(&mut self) -> Option<&mut Vector> {
match self {
Graphic::Vector(vector) => Some(vector),
_ => None,
}
}
pub fn as_raster(&self) -> Option<&Raster<CPU>> {
match self {
Graphic::RasterCPU(raster) => Some(raster),