From 7150e1f82085a2aa9156776a36f81f959fc341c9 Mon Sep 17 00:00:00 2001 From: Vincent Foulon Date: Tue, 29 Dec 2020 15:57:47 +0100 Subject: [PATCH] rename a translation file and clear some commented code --- assets/voxygen/i18n/en/hud/{_root.ron => misc.ron} | 0 voxygen/src/i18n.rs | 12 ------------ 2 files changed, 12 deletions(-) rename assets/voxygen/i18n/en/hud/{_root.ron => misc.ron} (100%) diff --git a/assets/voxygen/i18n/en/hud/_root.ron b/assets/voxygen/i18n/en/hud/misc.ron similarity index 100% rename from assets/voxygen/i18n/en/hud/_root.ron rename to assets/voxygen/i18n/en/hud/misc.ron diff --git a/voxygen/src/i18n.rs b/voxygen/src/i18n.rs index 1dd910bd7d..27d590de23 100644 --- a/voxygen/src/i18n.rs +++ b/voxygen/src/i18n.rs @@ -165,18 +165,6 @@ impl Localization { ); } } - - // Initializes and return a Localization with the given key - // Panics if the Localization cannot be found - // #[track_caller] - // pub fn load_expect(asset_key: &str) -> assets::AssetHandle { - // Self::load(asset_key).unwrap_or_else(|err| { - // panic!( - // "Failed loading essential asset: {} (error={:?})", - // asset_key, err - // ) - // }) - // } } impl From for Localization { fn from(raw: RawLocalization) -> Self {