Browse Source

Merge pull request #103 from archshift/prune

Prune redundant includes
pull/15/merge
bunnei 12 years ago
parent
commit
d79fe3ebaa
  1. 6
      src/common/console_listener.cpp
  2. 4
      src/common/file_search.cpp
  3. 7
      src/common/file_util.cpp
  4. 1
      src/common/log_manager.cpp
  5. 3
      src/common/math_util.cpp
  6. 4
      src/common/mem_arena.cpp
  7. 3
      src/common/memory_util.cpp
  8. 4
      src/common/string_util.cpp
  9. 1
      src/common/thread.cpp
  10. 4
      src/common/utf8.cpp
  11. 1
      src/core/arm/disassembler/load_symbol_map.cpp
  12. 6
      src/core/core.cpp
  13. 1
      src/core/hle/config_mem.cpp
  14. 1
      src/core/hle/coprocessor.cpp
  15. 1
      src/core/hle/hle.cpp
  16. 1
      src/core/hle/kernel/archive.cpp
  17. 2
      src/core/hle/kernel/kernel.cpp
  18. 3
      src/core/hle/kernel/thread.cpp
  19. 2
      src/core/hle/service/fs.cpp
  20. 1
      src/core/hle/service/gsp.cpp
  21. 2
      src/core/hle/service/ndm.cpp
  22. 5
      src/core/hle/service/service.cpp
  23. 1
      src/core/hle/service/srv.cpp
  24. 3
      src/core/hle/svc.cpp
  25. 2
      src/core/hw/gpu.cpp
  26. 1
      src/core/hw/hw.cpp
  27. 1
      src/core/hw/ndma.cpp
  28. 1
      src/core/loader/loader.cpp
  29. 1
      src/core/mem_map.cpp
  30. 1
      src/core/mem_map_funcs.cpp

6
src/common/console_listener.cpp

@ -3,14 +3,10 @@
// Refer to the license.txt file included.
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <string>
#ifdef _WIN32
#include <windows.h>
#include <array>
#else
#include <cstdarg>
#endif
#include "common/common.h"

4
src/common/file_search.cpp

@ -4,15 +4,13 @@
#include "common/common.h"
#include "common/common_paths.h"
#ifndef _WIN32
#include <sys/types.h>
#include <dirent.h>
#else
#include <windows.h>
#endif
#include <string>
#include <algorithm>
#include "common/file_search.h"

7
src/common/file_util.cpp

@ -4,9 +4,7 @@
#include "common/common.h"
#include "common/common_paths.h"
#include "common/file_util.h"
#include "common/string_util.h"
#ifdef _WIN32
#include <windows.h>
@ -16,10 +14,7 @@
#include <io.h>
#include <direct.h> // getcwd
#else
#include <cerrno>
#include <cstdlib>
#include <sys/param.h>
#include <sys/types.h>
#include <dirent.h>
#endif
@ -32,8 +27,6 @@
#include <algorithm>
#include <sys/stat.h>
#include "common/string_util.h"
#ifndef S_ISDIR
#define S_ISDIR(m) (((m)&S_IFMT) == S_IFDIR)
#endif

1
src/common/log_manager.cpp

@ -8,7 +8,6 @@
#include "common/console_listener.h"
#include "common/timer.h"
#include "common/thread.h"
#include "common/file_util.h"
void GenericLog(LogTypes::LOG_LEVELS level, LogTypes::LOG_TYPE type, const char* file, int line,
const char* function, const char* fmt, ...)

3
src/common/math_util.cpp

@ -6,8 +6,7 @@
#include "common/common.h"
#include "common/math_util.h"
#include <cmath>
#include <numeric>
#include <numeric> // Necessary on OS X, but not Linux
namespace MathUtil
{

4
src/common/mem_arena.cpp

@ -22,11 +22,7 @@
#include "common/string_util.h"
#ifndef _WIN32
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <cerrno>
#include <cstring>
#ifdef ANDROID
#include <sys/ioctl.h>
#include <linux/ashmem.h>

3
src/common/memory_util.cpp

@ -10,9 +10,6 @@
#ifdef _WIN32
#include <windows.h>
#include <psapi.h>
#else
#include <cerrno>
#include <cstdio>
#endif
#if !defined(_WIN32) && defined(__x86_64__) && !defined(MAP_32BIT)

4
src/common/string_util.cpp

@ -3,17 +3,13 @@
// Refer to the license.txt file included.
#include <algorithm>
#include <cstdlib>
#include <cstdio>
#include "common/common.h"
#include "common/common_paths.h"
#include "common/string_util.h"
#ifdef _WIN32
#include <Windows.h>
#else
#include <cerrno>
#include <iconv.h>
#endif

1
src/common/thread.cpp

@ -3,7 +3,6 @@
// Refer to the license.txt file included.
#include "common/thread.h"
#include "common/common.h"
#ifdef __APPLE__
#include <mach/mach.h>

4
src/common/utf8.cpp

@ -19,12 +19,8 @@
#endif
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <cstdarg>
#include <algorithm>
#include <string>
#include "common/common_types.h"
#include "common/utf8.h"

1
src/core/arm/disassembler/load_symbol_map.cpp

@ -6,7 +6,6 @@
#include <vector>
#include "common/symbols.h"
#include "common/common_types.h"
#include "common/file_util.h"
#include "core/arm/disassembler/load_symbol_map.h"

6
src/core/core.cpp

@ -3,15 +3,9 @@
// Refer to the license.txt file included.
#include "common/common_types.h"
#include "common/log.h"
#include "common/symbols.h"
#include "video_core/video_core.h"
#include "core/core.h"
#include "core/mem_map.h"
#include "core/hw/hw.h"
#include "core/hw/gpu.h"
#include "core/arm/disassembler/arm_disasm.h"
#include "core/arm/interpreter/arm_interpreter.h"

1
src/core/hle/config_mem.cpp

@ -3,7 +3,6 @@
// Refer to the license.txt file included.
#include "common/common_types.h"
#include "common/log.h"
#include "core/hle/config_mem.h"

1
src/core/hle/coprocessor.cpp

@ -5,7 +5,6 @@
#include "core/hle/coprocessor.h"
#include "core/hle/hle.h"
#include "core/mem_map.h"
#include "core/core.h"
namespace HLE {

1
src/core/hle/hle.cpp

@ -6,7 +6,6 @@
#include "core/mem_map.h"
#include "core/hle/hle.h"
#include "core/hle/svc.h"
#include "core/hle/kernel/thread.h"
#include "core/hle/service/service.h"

1
src/core/hle/kernel/archive.cpp

@ -7,7 +7,6 @@
#include "core/file_sys/archive.h"
#include "core/hle/service/service.h"
#include "core/hle/kernel/kernel.h"
#include "core/hle/kernel/archive.h"
////////////////////////////////////////////////////////////////////////////////////////////////////

2
src/core/hle/kernel/kernel.cpp

@ -2,8 +2,6 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
#include <string.h>
#include "common/common.h"
#include "core/core.h"

3
src/core/hle/kernel/thread.cpp

@ -3,10 +3,8 @@
// Refer to the license.txt file included.
#include <algorithm>
#include <cstdio>
#include <list>
#include <map>
#include <string>
#include <vector>
#include "common/common.h"
@ -15,7 +13,6 @@
#include "core/core.h"
#include "core/mem_map.h"
#include "core/hle/hle.h"
#include "core/hle/svc.h"
#include "core/hle/kernel/kernel.h"
#include "core/hle/kernel/thread.h"

2
src/core/hle/service/fs.cpp

@ -4,8 +4,6 @@
#include "common/common.h"
#include "core/loader/loader.h"
#include "core/hle/hle.h"
#include "core/hle/service/fs.h"
#include "core/hle/kernel/archive.h"

1
src/core/hle/service/gsp.cpp

@ -7,7 +7,6 @@
#include "common/bit_field.h"
#include "core/mem_map.h"
#include "core/hle/hle.h"
#include "core/hle/kernel/event.h"
#include "core/hle/kernel/shared_memory.h"
#include "core/hle/service/gsp.h"

2
src/core/hle/service/ndm.cpp

@ -2,8 +2,6 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
#include "common/log.h"
#include "core/hle/hle.h"
#include "core/hle/service/ndm.h"

5
src/core/hle/service/service.cpp

@ -3,11 +3,8 @@
// Refer to the license.txt file included.
#include "common/common.h"
#include "common/log.h"
#include "common/string_util.h"
#include "core/hle/hle.h"
#include "core/hle/service/service.h"
#include "core/hle/service/apt.h"
#include "core/hle/service/fs.h"
@ -16,8 +13,6 @@
#include "core/hle/service/ndm.h"
#include "core/hle/service/srv.h"
#include "core/hle/kernel/kernel.h"
namespace Service {
Manager* g_manager = nullptr; ///< Service manager

1
src/core/hle/service/srv.cpp

@ -4,7 +4,6 @@
#include "core/hle/hle.h"
#include "core/hle/service/srv.h"
#include "core/hle/service/service.h"
#include "core/hle/kernel/event.h"
////////////////////////////////////////////////////////////////////////////////////////////////////

3
src/core/hle/svc.cpp

@ -3,7 +3,6 @@
// Refer to the license.txt file included.
#include <map>
#include <string>
#include "common/string_util.h"
#include "common/symbols.h"
@ -12,13 +11,11 @@
#include "core/hle/kernel/address_arbiter.h"
#include "core/hle/kernel/event.h"
#include "core/hle/kernel/kernel.h"
#include "core/hle/kernel/mutex.h"
#include "core/hle/kernel/shared_memory.h"
#include "core/hle/kernel/thread.h"
#include "core/hle/function_wrappers.h"
#include "core/hle/svc.h"
#include "core/hle/service/service.h"
////////////////////////////////////////////////////////////////////////////////////////////////////

2
src/core/hw/gpu.cpp

@ -3,13 +3,11 @@
// Refer to the license.txt file included.
#include "common/common_types.h"
#include "common/log.h"
#include "core/core.h"
#include "core/mem_map.h"
#include "core/hle/hle.h"
#include "core/hle/kernel/thread.h"
#include "core/hle/service/gsp.h"
#include "core/hw/gpu.h"

1
src/core/hw/hw.cpp

@ -3,7 +3,6 @@
// Refer to the license.txt file included.
#include "common/common_types.h"
#include "common/log.h"
#include "core/hw/hw.h"
#include "core/hw/gpu.h"

1
src/core/hw/ndma.cpp

@ -3,7 +3,6 @@
// Refer to the license.txt file included.
#include "common/common_types.h"
#include "common/log.h"
#include "core/hw/ndma.h"

1
src/core/loader/loader.cpp

@ -5,7 +5,6 @@
#include <memory>
#include "core/file_sys/archive_romfs.h"
#include "core/loader/loader.h"
#include "core/loader/elf.h"
#include "core/loader/ncch.h"
#include "core/hle/kernel/archive.h"

1
src/core/mem_map.cpp

@ -6,7 +6,6 @@
#include "common/mem_arena.h"
#include "core/mem_map.h"
#include "core/core.h"
////////////////////////////////////////////////////////////////////////////////////////////////////

1
src/core/mem_map_funcs.cpp

@ -8,7 +8,6 @@
#include "core/mem_map.h"
#include "core/hw/hw.h"
#include "hle/hle.h"
#include "hle/config_mem.h"
namespace Memory {

Loading…
Cancel
Save