Skip to content

Commit

Permalink
Remove define duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimach committed Aug 7, 2024
1 parent 6b080b3 commit 21aaf16
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 27 deletions.
14 changes: 0 additions & 14 deletions modular_ss220/modules/tts/code/_tts_defines.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
13 changes: 0 additions & 13 deletions modular_ss220/modules/tts/code/~undefs/~tts_undefs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 21aaf16

Please sign in to comment.