Преглед на файлове

app: remove text1 refs from ChatView

jkds преди 7 месеца
родител
ревизия
0a8be750d3
променени са 4 файла, в които са добавени 0 реда и са изтрити 9 реда
  1. 0 1
      bin/app/src/app/schema/chat.rs
  2. 0 1
      bin/app/src/app/schema/test.rs
  3. 0 3
      bin/app/src/ui/chatview/mod.rs
  4. 0 4
      bin/app/src/ui/chatview/page.rs

+ 0 - 1
bin/app/src/app/schema/chat.rs

@@ -560,7 +560,6 @@ pub async fn make(
                 chat_tree,
                 window_scale.clone(),
                 app.render_api.clone(),
-                app.text_shaper.clone(),
                 app.sg_root.clone(),
             )
         })

+ 0 - 1
bin/app/src/app/schema/test.rs

@@ -364,7 +364,6 @@ pub async fn make(app: &App, window: SceneNodePtr, i18n_fish: &I18nBabelFish) {
                 chat_tree,
                 window_scale.clone(),
                 app.render_api.clone(),
-                app.text_shaper.clone(),
                 app.sg_root.clone(),
             )
         })

+ 0 - 3
bin/app/src/ui/chatview/mod.rs

@@ -47,7 +47,6 @@ use crate::{
         PropertyFloat32, PropertyRect, PropertyUint32, Role,
     },
     scene::{MethodCallSub, Pimpl, SceneNodePtr, SceneNodeWeak},
-    text::TextShaperPtr,
     ExecutorPtr,
 };
 
@@ -196,7 +195,6 @@ impl ChatView {
         tree: sled::Tree,
         window_scale: PropertyFloat32,
         render_api: RenderApi,
-        text_shaper: TextShaperPtr,
         sg_root: SceneNodePtr,
     ) -> Pimpl {
         let node_ref = &node.upgrade().unwrap();
@@ -254,7 +252,6 @@ impl ChatView {
                 debug,
                 window_scale,
                 render_api,
-                text_shaper,
             )),
             dc_key: OsRng.gen(),
 

+ 0 - 4
bin/app/src/ui/chatview/page.rs

@@ -38,7 +38,6 @@ use crate::{
     gfx::{gfxtag, DrawInstruction, ManagedTexturePtr, Point, Rectangle, RenderApi},
     mesh::{Color, MeshBuilder, COLOR_CYAN, COLOR_GREEN, COLOR_RED, COLOR_WHITE},
     prop::{PropertyBool, PropertyColor, PropertyFloat32, PropertyPtr},
-    text::{TextShaper, TextShaperPtr},
     text2,
     util::enumerate_mut,
 };
@@ -725,7 +724,6 @@ pub struct MessageBuffer {
     old_window_scale: f32,
 
     render_api: RenderApi,
-    text_shaper: TextShaperPtr,
 }
 
 impl MessageBuffer {
@@ -743,7 +741,6 @@ impl MessageBuffer {
         debug: PropertyBool,
         window_scale: PropertyFloat32,
         render_api: RenderApi,
-        text_shaper: TextShaperPtr,
     ) -> Self {
         let old_window_scale = window_scale.get();
         Self {
@@ -767,7 +764,6 @@ impl MessageBuffer {
             old_window_scale,
 
             render_api,
-            text_shaper,
         }
     }