Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ten3roberts committed Aug 8, 2023
1 parent 8e2378e commit ebad7bf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
1 change: 0 additions & 1 deletion crates/native_std/src/uncategorized/download_asset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ pub async fn download_uncached_bytes(
impl AsyncAssetKey<AssetResult<Arc<Vec<u8>>>> for BytesFromUrl {
async fn load(self, assets: AssetCache) -> AssetResult<Arc<Vec<u8>>> {
#[cfg(not(target_os = "unknown"))]
assert!(!AssetsCacheOnDisk.get(&assets));
if self.cache_on_disk && AssetsCacheOnDisk.get(&assets) {
let path = BytesFromUrlCachedPath {
url: self.url.clone(),
Expand Down
9 changes: 1 addition & 8 deletions crates/network/src/client_game_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,7 @@ use ambient_core::{
use ambient_ecs::{components, query, Entity, FrameEvent, System, SystemGroup, World};
use ambient_gizmos::render::GizmoRenderer;
use ambient_gpu::gpu::Gpu;
use ambient_native_std::{
asset_cache::{AssetCache, SyncAssetKeyExt},
color::Color,
download_asset::AssetsCacheOnDisk,
math::interpolate,
shapes::Ray,
};
use ambient_native_std::{asset_cache::AssetCache, color::Color, math::interpolate, shapes::Ray};
use ambient_renderer::{RenderTarget, Renderer, RendererConfig, RendererTarget};
use ambient_world_audio::systems::{setup_audio, spatial_audio_systems};
use glam::{vec2, Mat4, Vec2, Vec3, Vec3Swizzles};
Expand Down Expand Up @@ -135,7 +129,6 @@ impl ClientGameState {
Some(Color::rgba(0., 0., 0., 1.)),
);

assert_eq!(AssetsCacheOnDisk.get(&self.assets), false);
tracing::trace!("Drawing ui");

self.ui_renderer.render(
Expand Down

0 comments on commit ebad7bf

Please sign in to comment.