Skip to content

Commit

Permalink
Reduce unnecessary include in serialize.h
Browse files Browse the repository at this point in the history
  • Loading branch information
sfan5 committed Mar 30, 2024
1 parent 673d249 commit d1a1aed
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/content_nodemeta.cpp
Expand Up @@ -22,6 +22,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "nodetimer.h"
#include "inventory.h"
#include "log.h"
#include "debug.h"
#include "serialization.h"
#include "util/serialize.h"
#include "util/string.h"
Expand Down
1 change: 1 addition & 0 deletions src/nodemetadata.cpp
Expand Up @@ -23,6 +23,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "inventory.h"
#include "irrlicht_changes/printing.h"
#include "log.h"
#include "debug.h"
#include "util/serialize.h"
#include "constants.h" // MAP_BLOCKSIZE
#include <sstream>
Expand Down
1 change: 1 addition & 0 deletions src/object_properties.cpp
Expand Up @@ -21,6 +21,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "irrlicht_changes/printing.h"
#include "irrlichttypes_bloated.h"
#include "exceptions.h"
#include "log.h"
#include "util/serialize.h"
#include <sstream>

Expand Down
1 change: 1 addition & 0 deletions src/script/common/c_converter.cpp
Expand Up @@ -25,6 +25,7 @@ extern "C" {
#include "util/numeric.h"
#include "util/serialize.h"
#include "util/string.h"
#include "log.h"
#include "common/c_converter.h"
#include "common/c_internal.h"
#include "constants.h"
Expand Down
2 changes: 1 addition & 1 deletion src/serialization.cpp
Expand Up @@ -18,7 +18,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
*/

#include "serialization.h"

#include "log.h"
#include "util/serialize.h"

#include <zlib.h>
Expand Down
2 changes: 1 addition & 1 deletion src/util/serialize.h
Expand Up @@ -21,7 +21,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,

#include "irrlichttypes_bloated.h"
#include "exceptions.h" // for SerializationError
#include "debug.h" // for assert
#include "ieee_float.h"

#include "config.h"
Expand All @@ -39,6 +38,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#endif
#endif
#include <cstring> // for memcpy
#include <cassert>
#include <iostream>
#include <string>
#include <string_view>
Expand Down

0 comments on commit d1a1aed

Please sign in to comment.