From 774f64c0789529884dd7a5232f190e347ad29532 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Fri, 23 Jan 2026 17:41:45 +0100 Subject: move locale code to own crate --- common/src/api.rs | 18 ------------------ common/src/node.rs | 9 +-------- 2 files changed, 1 insertion(+), 26 deletions(-) (limited to 'common/src') diff --git a/common/src/api.rs b/common/src/api.rs index ee26020..9040852 100644 --- a/common/src/api.rs +++ b/common/src/api.rs @@ -84,24 +84,6 @@ enums! { // pub users: Vec, // } -// pub struct LogLine { -// pub time: DateTime, -// pub module: Option<&'static str>, -// pub level: LogLevel, -// pub message: String, -// } - -// url_enum!( -// #[derive(Serialize, Deserialize, Clone, Copy, PartialEq)] -// enum LogLevel { -// Trace = "trace", -// Debug = "debug", -// Info = "info", -// Warn = "warn", -// Error = "error", -// } -// ); - // #[derive(Default, Serialize, Deserialize)] // pub struct StatsBin { // pub runtime: f64, diff --git a/common/src/node.rs b/common/src/node.rs index 3163dc5..60544e2 100644 --- a/common/src/node.rs +++ b/common/src/node.rs @@ -38,7 +38,7 @@ fields! { TR_SOURCE: Object = 17 "source"; TR_NAME: &str = 18 "name"; TR_CODEC: &str = 19 "codec"; - TR_LANGUAGE: Tag = 20 "language"; + TR_LANGUAGE: &str = 20 "language"; // BCP 47 TR_RATE: f64 = 23 "rate"; TR_BIT_DEPTH: u32 = 25 "bit_depth"; TR_CHANNELS: u32 = 28 "channels"; @@ -52,12 +52,6 @@ fields! { CH_END: f64 = 30 "end"; CH_NAME: &str = 31 "name"; - LANG_UND: &str = 40 "und"; - LANG_NATIVE: &str = 41 "native"; - LANG_ENG: &str = 42 "eng"; - LANG_DEU: &str = 43 "deu"; - LANG_JPN: &str = 44 "jpn"; - PICT_COVER: &str = 45 "cover"; PICT_BACKDROP: &str = 46 "backdrop"; @@ -95,7 +89,6 @@ fields! { } pub type Kind = Tag; -pub type Language = Tag; enums! { VISI_HIDDEN = 76 "hidden"; -- cgit v1.3