Skip to content

Commit

Permalink
remove print noise
Browse files Browse the repository at this point in the history
  • Loading branch information
geom3trik committed Jun 3, 2024
1 parent b59f6c0 commit 975f21e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion crates/vizia_core/src/systems/style.rs
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,6 @@ fn link_style_data(style: &mut Style, entity: Entity, matched_rules: &[Rule]) {
if style.font_color.link(entity, matched_rules) {
should_redraw = true;
should_reflow = true;
println!("{} {:?}", entity, matched_rules);
}

if style.font_size.link(entity, matched_rules) {
Expand Down
5 changes: 0 additions & 5 deletions crates/vizia_core/src/views/textbox.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,8 @@ where

fn insert_text(&mut self, cx: &mut EventContext, txt: &str) {
if let Some(text) = cx.style.text.get_mut(cx.current) {
println!("do this: {:?} {}", self.selection.range(), txt);
text.edit(self.selection.range(), txt);
self.selection = Selection::caret(self.selection.min() + txt.len());
println!("{}", self.selection.active);
cx.style.needs_text_update(cx.current);
}
}
Expand Down Expand Up @@ -247,7 +245,6 @@ where
if let Some(paragraph) = cx.text_context.text_paragraphs.get(cx.current) {
let new_selection =
apply_movement(movement, self.selection, text, paragraph, selection);
println!("{:?} {:?}", self.selection, new_selection);
self.selection = new_selection;
cx.needs_redraw();
}
Expand Down Expand Up @@ -397,7 +394,6 @@ where
let text_length = cx.style.text.get(cx.current).map(|txt| txt.len()).unwrap();

let lm = paragraph.get_actual_text_range(0, false);
println!("{:?} {} {}", lm, self.selection.active, text_length);

// let rng = if self.selection.active == 0 {
// (self.selection.active - 1)..self.selection.active
Expand All @@ -410,7 +406,6 @@ where
RectHeightStyle::Tight,
RectWidthStyle::Tight,
);
println!("{:?}", rects);

let cursor_rect = rects.first().unwrap();

Expand Down
1 change: 0 additions & 1 deletion examples/style/text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ impl Model for AppData {
event.map(|app_event, _| match app_event {
AppEvent::SetSelectedFont(font) => {
self.selected_font = font.clone();
println!("{}", font);
}

AppEvent::SetSelectedWeight(weight_keyword) => {
Expand Down

0 comments on commit 975f21e

Please sign in to comment.