chore: remove unused functions, add 'web' task to Justfile

This commit is contained in:
Ryan Walters
2025-09-03 16:31:21 -05:00
parent 4cc5816d1f
commit 0907b5ebe7
3 changed files with 6 additions and 13 deletions

View File

@@ -1,7 +1,7 @@
//! Desktop platform implementation.
use std::borrow::Cow;
use std::time::{Duration, Instant};
use std::time::Duration;
use rand::rngs::ThreadRng;
@@ -17,10 +17,6 @@ pub fn sleep(duration: Duration, focused: bool) {
}
}
pub fn get_time() -> f64 {
Instant::now().elapsed().as_secs_f64()
}
pub fn init_console() -> Result<(), PlatformError> {
#[cfg(windows)]
{
@@ -53,10 +49,6 @@ pub fn requires_console() -> bool {
cfg!(windows)
}
pub fn get_canvas_size() -> Option<(u32, u32)> {
None // Desktop doesn't need this
}
pub fn get_asset_bytes(asset: Asset) -> Result<Cow<'static, [u8]>, AssetError> {
match asset {
Asset::Wav1 => Ok(Cow::Borrowed(include_bytes!("../../assets/game/sound/waka/1.ogg"))),