Remove unused dependencies and avoid instantiating FontCache in tests
This commit is contained in:
parent
5f3dbb05d6
commit
0906b2a2f4
7 changed files with 11 additions and 21 deletions
|
@ -22,7 +22,7 @@ impl Presenter {
|
|||
pub fn new(
|
||||
window_id: usize,
|
||||
font_cache: Arc<FontCache>,
|
||||
fonts: Arc<dyn platform::FontSystem>,
|
||||
text_layout_cache: TextLayoutCache,
|
||||
asset_cache: Arc<AssetCache>,
|
||||
app: &MutableAppContext,
|
||||
) -> Self {
|
||||
|
@ -31,7 +31,7 @@ impl Presenter {
|
|||
rendered_views: app.render_views(window_id).unwrap(),
|
||||
parents: HashMap::new(),
|
||||
font_cache,
|
||||
text_layout_cache: TextLayoutCache::new(fonts),
|
||||
text_layout_cache,
|
||||
asset_cache,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue