From 7f78d0ce1b24a6027e8c437d80f886d9e16c8631 Mon Sep 17 00:00:00 2001 From: liquidev Date: Sat, 24 Aug 2024 20:09:52 +0200 Subject: [PATCH] remove some leftover code --- crates/rkgk/src/api/wall.rs | 4 +++- crates/rkgk/src/main.rs | 1 - static/brush-editor.js | 2 -- static/index.js | 2 -- 4 files changed, 3 insertions(+), 6 deletions(-) diff --git a/crates/rkgk/src/api/wall.rs b/crates/rkgk/src/api/wall.rs index 5719db4..d38abc7 100644 --- a/crates/rkgk/src/api/wall.rs +++ b/crates/rkgk/src/api/wall.rs @@ -1,6 +1,7 @@ use std::{ collections::{HashSet, VecDeque}, sync::Arc, + time::Duration, }; use axum::{ @@ -20,8 +21,9 @@ use serde::{Deserialize, Serialize}; use tokio::{ select, sync::{mpsc, oneshot}, + time::interval, }; -use tracing::{error, info, instrument}; +use tracing::{error, instrument}; use crate::{ haku::{Haku, Limits}, diff --git a/crates/rkgk/src/main.rs b/crates/rkgk/src/main.rs index c29bcce..b322b18 100644 --- a/crates/rkgk/src/main.rs +++ b/crates/rkgk/src/main.rs @@ -7,7 +7,6 @@ use std::{ use api::Api; use axum::Router; -use color_eyre::owo_colors::OwoColorize; use config::Config; use copy_dir::copy_dir; use eyre::Context; diff --git a/static/brush-editor.js b/static/brush-editor.js index c0db4be..11abc2a 100644 --- a/static/brush-editor.js +++ b/static/brush-editor.js @@ -56,8 +56,6 @@ export class BrushEditor extends HTMLElement { renderHakuResult(phase, result) { this.resetErrors(); - console.log(result); - if (result.status != "error") return; this.errorHeader.textContent = `${phase} failed`; diff --git a/static/index.js b/static/index.js index 084fac2..4bfbddd 100644 --- a/static/index.js +++ b/static/index.js @@ -189,8 +189,6 @@ function readUrl() { brushEditor.resetErrors(); let result = currentUser.renderBrushToChunks(wall, event.x, event.y); - console.log(result); - if (result.status == "error") { brushEditor.renderHakuResult( result.phase == "eval" ? "Evaluation" : "Rendering",