ref: 66e4995135ff4798c4bb14e85c694c48a21792d6
parent: a5bf854408b35310569b22d294642e007d4a5782
author: Gabriel Ravier <gabravier@gmail.com>
date: Mon Jun 29 20:12:17 EDT 2020
src: Remove unnecessary includes Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
--- a/src/Back.cpp
+++ b/src/Back.cpp
@@ -1,6 +1,5 @@
#include "Back.h"
-#include <stddef.h>
#include <stdio.h>
#include "WindowsWrapper.h"
@@ -7,11 +6,7 @@
#include "CommonDefines.h"
#include "Draw.h"
-#include "Frame.h"
-#include "Game.h"
#include "Main.h"
-#include "Map.h"
-#include "Stage.h"
BACK gBack;
int gWaterY;
--- a/src/Config.cpp
+++ b/src/Config.cpp
@@ -1,4 +1,3 @@
-#include <stddef.h>
#include <stdio.h>
#include <string.h>
--- a/src/Draw.cpp
+++ b/src/Draw.cpp
@@ -1,8 +1,6 @@
#include "Draw.h"
-#include <stddef.h>
#include <stdio.h>
-#include <stdlib.h>
#include <string.h>
#include <ddraw.h>
--- a/src/Game.cpp
+++ b/src/Game.cpp
@@ -1,6 +1,5 @@
#include "Game.h"
-#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
--- a/src/Input.cpp
+++ b/src/Input.cpp
@@ -1,8 +1,6 @@
#include "Input.h"
-#include <stddef.h>
#include <stdio.h>
-#include <string.h>
#if defined(_MSC_VER) && _MSC_VER >= 1500 // Newer versions of Visual Studio don't support anything earlier than DirectInput8
#define DIRECTINPUT_VERSION 0x800
--- a/src/Main.cpp
+++ b/src/Main.cpp
@@ -1,6 +1,5 @@
#include "Main.h"
-#include <stddef.h>
#include <stdio.h>
#include <string.h>
--- a/src/Map.cpp
+++ b/src/Map.cpp
@@ -1,6 +1,5 @@
#include "Map.h"
-#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
--- a/src/NpChar.cpp
+++ b/src/NpChar.cpp
@@ -1,6 +1,5 @@
#include "NpChar.h"
-#include <stddef.h>
#include <stdio.h>
#include <string.h>
--- a/src/NpChar.h
+++ b/src/NpChar.h
@@ -1,6 +1,5 @@
#pragma once
-#include "CommonDefines.h"
#include "WindowsWrapper.h"
#include "Draw.h"
--- a/src/NpcTbl.cpp
+++ b/src/NpcTbl.cpp
@@ -1,6 +1,5 @@
#include "NpcTbl.h"
-#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
--- a/src/Organya.cpp
+++ b/src/Organya.cpp
@@ -6,8 +6,6 @@
#include "Organya.h"
-#include <stddef.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
--- a/src/Profile.cpp
+++ b/src/Profile.cpp
@@ -1,6 +1,5 @@
#include "Profile.h"
-#include <stddef.h>
#include <stdio.h>
#include <string.h>
--- a/src/Sound.cpp
+++ b/src/Sound.cpp
@@ -12,7 +12,6 @@
#include "Sound.h"
-#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
--- a/src/Sound.h
+++ b/src/Sound.h
@@ -1,7 +1,5 @@
#pragma once
-#include <stddef.h>
-
#ifndef DIRECTSOUND_VERSION
#define DIRECTSOUND_VERSION 0x500
#endif