Skip to content

Commit

Permalink
remove some log spam
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharktheone committed Dec 4, 2024
1 parent 7bb4f38 commit 183e958
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion crates/gosub_renderer/src/draw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,6 @@ fn render_bg<B: RenderBackend, L: Layouter, C: CssSystem, RT: render_tree::Rende
let background_image = node
.properties
.get("background-image")
.map(|x| dbg!(x))
.and_then(|prop| prop.as_function());

let mut img_size = None;
Expand Down
8 changes: 0 additions & 8 deletions crates/gosub_useragent/src/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,7 @@ impl<
let _ = proxy.send_event(CustomEventInternal::OpenTab(url, id));
}
CustomEventInternal::AddTab(tab, id) => {
info!("Adding tab to window: {id:?}");

if let Some(window) = self.windows.get_mut(&id) {
info!("Found window, adding tab");

window.add_tab(tab);
}
}
Expand Down Expand Up @@ -242,10 +238,6 @@ impl<
CustomEventInternal::AddImg(url, img, size, id) => {
if let Some(window) = self.windows.get_mut(&id) {
if let Some(tab) = window.tabs.get_current_tab() {
info!("Add img {url} {size:?}");

info!("size {:?}", img.size());

tab.data.get_img_cache().add(url, img, size);

tab.data.make_dirty();
Expand Down
3 changes: 0 additions & 3 deletions crates/gosub_useragent/src/tabs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ use gosub_shared::traits::document::Document;
use gosub_shared::traits::html5::Html5Parser;
use gosub_shared::traits::render_tree::RenderTree;
use gosub_shared::types::Result;
use log::info;
use slotmap::{DefaultKey, SlotMap};
use std::sync::mpsc::Sender;
use url::Url;
Expand Down Expand Up @@ -182,8 +181,6 @@ impl<
pub async fn from_url<P: Html5Parser<C, Document = Doc>>(url: Url, layouter: L, debug: bool) -> Result<Self> {
let data = D::from_url::<P>(url.clone(), layouter, debug).await?;

info!("Tab created: {}", url.as_str());

Ok(Self {
title: url.as_str().to_string(),
url,
Expand Down

0 comments on commit 183e958

Please sign in to comment.