From 21aaf16f14c20f7288f30671dcb10c6761c862c6 Mon Sep 17 00:00:00 2001 From: Dimach Date: Wed, 7 Aug 2024 13:31:57 +0000 Subject: [PATCH] Remove define duplicates --- modular_ss220/modules/tts/code/_tts_defines.dm | 14 -------------- .../modules/tts/code/~undefs/~tts_undefs.dm | 13 ------------- 2 files changed, 27 deletions(-) diff --git a/modular_ss220/modules/tts/code/_tts_defines.dm b/modular_ss220/modules/tts/code/_tts_defines.dm index 0c849b5c3767ca..09aa2a5561fa0b 100644 --- a/modular_ss220/modules/tts/code/_tts_defines.dm +++ b/modular_ss220/modules/tts/code/_tts_defines.dm @@ -13,20 +13,6 @@ #define rustg_file_write_b64decode(text, fname) RUSTG_CALL(RUST_G, "file_write")(text, fname, "true") -// Hashing Operations // -#define rustg_hash_string(algorithm, text) RUSTG_CALL(RUST_G, "hash_string")(algorithm, text) -#define rustg_hash_file(algorithm, fname) RUSTG_CALL(RUST_G, "hash_file")(algorithm, fname) - -#define RUSTG_HASH_MD5 "md5" - -#ifdef RUSTG_OVERRIDE_BUILTINS - #define md5(thing) (isfile(thing) ? rustg_hash_file(RUSTG_HASH_MD5, "[thing]") : rustg_hash_string(RUSTG_HASH_MD5, thing)) -#endif - -// Text Operations // -#define rustg_cyrillic_to_latin(text) RUSTG_CALL(RUST_G, "cyrillic_to_latin")("[text]") -#define rustg_latin_to_cyrillic(text) RUSTG_CALL(RUST_G, "latin_to_cyrillic")("[text]") - #define TTS_CATEGORY_OTHER "Другое" #define TTS_CATEGORY_WARCRAFT3 "WarCraft 3" #define TTS_CATEGORY_HALFLIFE2 "Half-Life 2" diff --git a/modular_ss220/modules/tts/code/~undefs/~tts_undefs.dm b/modular_ss220/modules/tts/code/~undefs/~tts_undefs.dm index 8acbba5e1fd96f..45fd91c252db49 100644 --- a/modular_ss220/modules/tts/code/~undefs/~tts_undefs.dm +++ b/modular_ss220/modules/tts/code/~undefs/~tts_undefs.dm @@ -13,19 +13,6 @@ #undef rustg_file_write_b64decode -#undef rustg_hash_string -#undef rustg_hash_file - -#undef RUSTG_HASH_MD5 - -#ifdef RUSTG_OVERRIDE_BUILTINS - #undef md5 -#endif - -// Text Operations // -#undef rustg_cyrillic_to_latin -#undef rustg_latin_to_cyrillic - #undef TTS_CATEGORY_OTHER #undef TTS_CATEGORY_WARCRAFT3 #undef TTS_CATEGORY_HALFLIFE2