Remove unnecessary includes from header files

Including a header file inside another header file means a bunch of
files are going to be unnecessarily recompiled whenever that inner
header file is changed. So I minimized the amount of header files
included in a header file, and only included the ones that were
necessary (system includes don't count, I'm only talking about includes
from within this project). Then the includes are only in the .cpp files
themselves.

This also minimizes problems such as a NO_CUSTOM_LEVELS build failing
because some file depended on an include that got included in editor.h,
which is another benefit of removing unnecessary includes from header
files.
This commit is contained in:
Misa
2020-07-19 12:05:41 -07:00
committed by Ethan Lee
parent d455e38715
commit b5ff65c84e
38 changed files with 81 additions and 65 deletions

View File

@@ -4,8 +4,6 @@
#include <string>
#include <vector>
#include "Enums.h"
#define filllines(lines) commands.insert(commands.end(), lines, lines + sizeof(lines)/sizeof(lines[0]))