Remove hacky children

This commit is contained in:
Marshall Bowers
2023-10-12 15:50:09 -04:00
parent 24bab48043
commit d320d3a8bf
6 changed files with 10 additions and 40 deletions
-7
View File
@@ -1,7 +0,0 @@
use std::any::Any;
use gpui3::{AnyElement, ViewContext};
pub type HackyChildren<S> = fn(&mut ViewContext<S>, &dyn Any) -> Vec<AnyElement<S>>;
pub type HackyChildrenPayload = Box<dyn Any + Send + Sync>;
-2
View File
@@ -1,6 +1,5 @@
#![allow(dead_code, unused_variables)]
mod children;
mod components;
mod element_ext;
mod elements;
@@ -8,7 +7,6 @@ pub mod prelude;
mod static_data;
mod theme;
pub use children::*;
pub use components::*;
pub use element_ext::*;
pub use elements::*;
+1 -1
View File
@@ -3,7 +3,7 @@ pub use gpui3::{
WindowContext,
};
pub use crate::{theme, ButtonVariant, ElementExt, HackyChildren, HackyChildrenPayload, Theme};
pub use crate::{theme, ButtonVariant, ElementExt, Theme};
use gpui3::{hsla, rems, rgb, AbsoluteLength, Hsla};
use strum::EnumIter;