From cbd823aa2154a956e7da4319eecbf7afc10441ae Mon Sep 17 00:00:00 2001 From: untodesu Date: Thu, 11 Sep 2025 15:47:37 +0500 Subject: Remove include guards --- game/server/chat.hh | 4 ---- game/server/game.hh | 4 ---- game/server/globals.hh | 4 ---- game/server/pch.hh | 4 ---- game/server/receive.hh | 4 ---- game/server/sessions.hh | 4 ---- game/server/status.hh | 4 ---- game/server/whitelist.hh | 4 ---- game/server/world/inhabited.hh | 4 ---- game/server/world/overworld.hh | 4 ---- game/server/world/universe.hh | 4 ---- game/server/world/unloader.hh | 4 ---- game/server/world/worldgen.hh | 4 ---- 13 files changed, 52 deletions(-) (limited to 'game/server') diff --git a/game/server/chat.hh b/game/server/chat.hh index fdf1a75..1b3e11b 100644 --- a/game/server/chat.hh +++ b/game/server/chat.hh @@ -1,5 +1,3 @@ -#ifndef SERVER_CHAT_HH -#define SERVER_CHAT_HH 1 #pragma once struct Session; @@ -12,5 +10,3 @@ void broadcast(std::string_view message, std::string_view sender); void send(Session* session, std::string_view message); void send(Session* session, std::string_view message, std::string_view sender); } // namespace server_chat - -#endif // SERVER_CHAT_HH diff --git a/game/server/game.hh b/game/server/game.hh index 2d40be7..1dbe4b8 100644 --- a/game/server/game.hh +++ b/game/server/game.hh @@ -1,5 +1,3 @@ -#ifndef SERVER_GAME_HH -#define SERVER_GAME_HH 1 #pragma once namespace config @@ -25,5 +23,3 @@ void shutdown(void); void fixed_update(void); void fixed_update_late(void); } // namespace server_game - -#endif // SERVER_GAME_HH diff --git a/game/server/globals.hh b/game/server/globals.hh index fdfc359..b684d3b 100644 --- a/game/server/globals.hh +++ b/game/server/globals.hh @@ -1,5 +1,3 @@ -#ifndef SERVER_GLOBALS_HH -#define SERVER_GLOBALS_HH 1 #pragma once #include "shared/globals.hh" @@ -27,5 +25,3 @@ extern std::uint64_t tickrate_dt; extern world::Dimension* spawn_dimension; extern std::unordered_map dimensions; } // namespace globals - -#endif // SERVER_GLOBALS_HH diff --git a/game/server/pch.hh b/game/server/pch.hh index 810a7e4..6f42c17 100644 --- a/game/server/pch.hh +++ b/game/server/pch.hh @@ -1,7 +1,3 @@ -#ifndef SERVER_PCH_HH -#define SERVER_PCH_HH 1 #pragma once #include - -#endif // SERVER_PCH_HH diff --git a/game/server/receive.hh b/game/server/receive.hh index 17333d0..4150226 100644 --- a/game/server/receive.hh +++ b/game/server/receive.hh @@ -1,10 +1,6 @@ -#ifndef SERVER_RECEIVE_HH -#define SERVER_RECEIVE_HH 1 #pragma once namespace server_recieve { void init(void); } // namespace server_recieve - -#endif // SERVER_RECEIVE_HH diff --git a/game/server/sessions.hh b/game/server/sessions.hh index e9ce989..656b76d 100644 --- a/game/server/sessions.hh +++ b/game/server/sessions.hh @@ -1,5 +1,3 @@ -#ifndef SERVER_SESSIONS_HH -#define SERVER_SESSIONS_HH 1 #pragma once namespace world @@ -55,5 +53,3 @@ namespace sessions { void refresh_scoreboard(void); } // namespace sessions - -#endif // SERVER_SESSIONS_HH diff --git a/game/server/status.hh b/game/server/status.hh index 218eab0..35370a0 100644 --- a/game/server/status.hh +++ b/game/server/status.hh @@ -1,10 +1,6 @@ -#ifndef SERVER_STATUS_HH -#define SERVER_STATUS_HH 1 #pragma once namespace status { void init(void); } // namespace status - -#endif // SERVER_STATUS_HH diff --git a/game/server/whitelist.hh b/game/server/whitelist.hh index b84a34c..4695d16 100644 --- a/game/server/whitelist.hh +++ b/game/server/whitelist.hh @@ -1,5 +1,3 @@ -#ifndef SERVER_WHITELIST_HH -#define SERVER_WHITELIST_HH 1 #pragma once namespace config @@ -26,5 +24,3 @@ namespace whitelist bool contains(std::string_view username); bool matches(std::string_view username, std::uint64_t password_hash); } // namespace whitelist - -#endif // SERVER_WHITELIST_HH diff --git a/game/server/world/inhabited.hh b/game/server/world/inhabited.hh index bbb7a03..57008e9 100644 --- a/game/server/world/inhabited.hh +++ b/game/server/world/inhabited.hh @@ -1,10 +1,6 @@ -#ifndef SERVER_INHABITED_HH -#define SERVER_INHABITED_HH 1 #pragma once namespace world { struct Inhabited final {}; } // namespace world - -#endif // SERVER_INHABITED_HH diff --git a/game/server/world/overworld.hh b/game/server/world/overworld.hh index cc6be91..f3fc8cf 100644 --- a/game/server/world/overworld.hh +++ b/game/server/world/overworld.hh @@ -1,5 +1,3 @@ -#ifndef SERVER_OVERWORLD_HH -#define SERVER_OVERWORLD_HH 1 #pragma once #include "core/config/number.hh" @@ -68,5 +66,3 @@ private: std::mutex m_mutex; }; } // namespace world - -#endif // SERVER_OVERWORLD_HH diff --git a/game/server/world/universe.hh b/game/server/world/universe.hh index 164ff01..285911e 100644 --- a/game/server/world/universe.hh +++ b/game/server/world/universe.hh @@ -1,5 +1,3 @@ -#ifndef SERVER_UNIVERSE_HH -#define SERVER_UNIVERSE_HH 1 #pragma once #include "shared/types.hh" @@ -25,5 +23,3 @@ Chunk* load_chunk(Dimension* dimension, const chunk_pos& cpos); void save_chunk(Dimension* dimension, const chunk_pos& cpos); void save_all_chunks(Dimension* dimension); } // namespace world::universe - -#endif // SERVER_UNIVERSE_HH diff --git a/game/server/world/unloader.hh b/game/server/world/unloader.hh index a995152..9682de6 100644 --- a/game/server/world/unloader.hh +++ b/game/server/world/unloader.hh @@ -1,5 +1,3 @@ -#ifndef SERVER_UNLOADER_HH -#define SERVER_UNLOADER_HH 1 #pragma once namespace world @@ -13,5 +11,3 @@ void init(void); void init_late(void); void fixed_update_late(Dimension* dimension); } // namespace world::unloader - -#endif // SERVER_UNLOADER_HH diff --git a/game/server/world/worldgen.hh b/game/server/world/worldgen.hh index db5b91f..8ffec36 100644 --- a/game/server/world/worldgen.hh +++ b/game/server/world/worldgen.hh @@ -1,5 +1,3 @@ -#ifndef SERVER_WORLDGEN_HH -#define SERVER_WORLDGEN_HH 1 #pragma once #include "shared/types.hh" @@ -21,5 +19,3 @@ namespace world::worldgen bool is_generating(Dimension* dimension, const chunk_pos& cpos); void request_chunk(Session* session, const chunk_pos& cpos); } // namespace world::worldgen - -#endif // SERVER_WORLDGEN_HH -- cgit