From f985e0faac3eebd8e65f5c3ab13ce2d631914d06 Mon Sep 17 00:00:00 2001 From: Michael Maltese Date: Sun, 14 May 2017 20:20:40 -0700 Subject: [PATCH] DSP: remove unused DSPLLETools With the relocation of DumpDSPCode to DSPCodeUtils, the only remaining function in DSPLLETools is DumpCWCode. This function 1) is not used anywhere (not even in DSPTool), 2) doesn't seem to really do anything, and 3) has a single comment saying "TODO make this useful :p" --- Source/Core/Core/CMakeLists.txt | 1 - Source/Core/Core/Core.vcxproj | 2 - Source/Core/Core/Core.vcxproj.filters | 6 --- Source/Core/Core/HW/DSPLLE/DSPLLETools.cpp | 45 ---------------------- Source/Core/Core/HW/DSPLLE/DSPLLETools.h | 15 -------- 5 files changed, 69 deletions(-) delete mode 100644 Source/Core/Core/HW/DSPLLE/DSPLLETools.cpp delete mode 100644 Source/Core/Core/HW/DSPLLE/DSPLLETools.h diff --git a/Source/Core/Core/CMakeLists.txt b/Source/Core/Core/CMakeLists.txt index 28e10f52ae..b610b06d8f 100644 --- a/Source/Core/Core/CMakeLists.txt +++ b/Source/Core/Core/CMakeLists.txt @@ -89,7 +89,6 @@ set(SRCS HW/DSPLLE/DSPSymbols.cpp HW/DSPLLE/DSPLLEGlobals.cpp HW/DSPLLE/DSPLLE.cpp - HW/DSPLLE/DSPLLETools.cpp HW/DVD/DVDInterface.cpp HW/DVD/DVDMath.cpp HW/DVD/DVDThread.cpp diff --git a/Source/Core/Core/Core.vcxproj b/Source/Core/Core/Core.vcxproj index b046d1140e..d8304543e9 100644 --- a/Source/Core/Core/Core.vcxproj +++ b/Source/Core/Core/Core.vcxproj @@ -117,7 +117,6 @@ - @@ -374,7 +373,6 @@ - diff --git a/Source/Core/Core/Core.vcxproj.filters b/Source/Core/Core/Core.vcxproj.filters index 1afefc23e1..25d211e06e 100644 --- a/Source/Core/Core/Core.vcxproj.filters +++ b/Source/Core/Core/Core.vcxproj.filters @@ -400,9 +400,6 @@ HW %28Flipper/Hollywood%29\DSP Interface + HLE\LLE - - HW %28Flipper/Hollywood%29\DSP Interface + HLE\LLE - HW %28Flipper/Hollywood%29\DSP Interface + HLE\LLE @@ -1079,9 +1076,6 @@ HW %28Flipper/Hollywood%29\DSP Interface + HLE\LLE - - HW %28Flipper/Hollywood%29\DSP Interface + HLE\LLE - HW %28Flipper/Hollywood%29\DSP Interface + HLE\LLE diff --git a/Source/Core/Core/HW/DSPLLE/DSPLLETools.cpp b/Source/Core/Core/HW/DSPLLE/DSPLLETools.cpp deleted file mode 100644 index 2675863c23..0000000000 --- a/Source/Core/Core/HW/DSPLLE/DSPLLETools.cpp +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2008 Dolphin Emulator Project -// Licensed under GPLv2+ -// Refer to the license.txt file included. - -#ifdef _WIN32 -#include -#endif - -#include -#include -#include -#include - -#include "Common/CommonTypes.h" -#include "Common/FileUtil.h" -#include "Common/StringUtil.h" -#include "Core/DSP/DSPCodeUtil.h" -#include "Core/DSP/DSPCore.h" -#include "Core/DSP/DSPDisassembler.h" -#include "Core/HW/DSPLLE/DSPLLETools.h" - -namespace DSP -{ -namespace LLE -{ -// TODO make this useful :p -bool DumpCWCode(u32 _Address, u32 _Length) -{ - std::string filename = File::GetUserPath(D_DUMPDSP_IDX) + "DSP_UCode.bin"; - File::IOFile pFile(filename, "wb"); - - if (pFile) - { - for (size_t i = _Address; i != _Address + _Length; ++i) - { - u16 val = g_dsp.iram[i]; - fprintf(pFile.GetHandle(), " cw 0x%04x \n", val); - } - return true; - } - - return false; -} -} // namespace LLE -} // namespace DSP diff --git a/Source/Core/Core/HW/DSPLLE/DSPLLETools.h b/Source/Core/Core/HW/DSPLLE/DSPLLETools.h deleted file mode 100644 index 03c2a5776e..0000000000 --- a/Source/Core/Core/HW/DSPLLE/DSPLLETools.h +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright 2008 Dolphin Emulator Project -// Licensed under GPLv2+ -// Refer to the license.txt file included. - -#pragma once - -#include "Common/CommonTypes.h" - -namespace DSP -{ -namespace LLE -{ -bool DumpCWCode(u32 _Address, u32 _Length); -} // namespace DSP -} // namespace LLE