From f9903f2054cc94195638e077a3142a4146acfad6 Mon Sep 17 00:00:00 2001 From: hrydgard Date: Tue, 14 Apr 2009 20:55:27 +0000 Subject: [PATCH] remove some outdated junk git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2969 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DSPCore/Src/DSPCodeUtil.cpp | 2 -- Source/Core/DSPCore/Src/disassemble.h | 7 ++----- Source/Plugins/Plugin_DSP_LLE/Src/Debugger/Debugger.cpp | 3 --- Source/Plugins/Plugin_DSP_LLE/Src/Tools.cpp | 1 - 4 files changed, 2 insertions(+), 11 deletions(-) diff --git a/Source/Core/DSPCore/Src/DSPCodeUtil.cpp b/Source/Core/DSPCore/Src/DSPCodeUtil.cpp index 4ccb17aa7a..fde2e9dcdf 100644 --- a/Source/Core/DSPCore/Src/DSPCodeUtil.cpp +++ b/Source/Core/DSPCore/Src/DSPCodeUtil.cpp @@ -28,13 +28,11 @@ bool Assemble(const char *text, std::vector *code) { const char *fname = "tmp.asm"; AssemblerSettings settings; - memset(&settings, 0, sizeof(settings)); settings.pc = 0; // settings.decode_registers = false; // settings.decode_names = false; settings.print_tabs = false; settings.ext_separator = '\''; - settings.buffer = 0; if (!File::WriteStringToFile(true, text, fname)) return false; diff --git a/Source/Core/DSPCore/Src/disassemble.h b/Source/Core/DSPCore/Src/disassemble.h index c59361a5bf..621983611a 100644 --- a/Source/Core/DSPCore/Src/disassemble.h +++ b/Source/Core/DSPCore/Src/disassemble.h @@ -36,7 +36,8 @@ struct AssemblerSettings show_pc(false), decode_names(true), decode_registers(true), - ext_separator('\'') + ext_separator('\''), + pc(0) { } @@ -45,13 +46,9 @@ struct AssemblerSettings bool show_pc; bool decode_names; bool decode_registers; - bool lower_case_ops; char ext_separator; - u16 *binbuf; u16 pc; - char* buffer; - u16 buffer_size; }; class DSPDisassembler diff --git a/Source/Plugins/Plugin_DSP_LLE/Src/Debugger/Debugger.cpp b/Source/Plugins/Plugin_DSP_LLE/Src/Debugger/Debugger.cpp index 0e6b9f34ef..0898333c61 100644 --- a/Source/Plugins/Plugin_DSP_LLE/Src/Debugger/Debugger.cpp +++ b/Source/Plugins/Plugin_DSP_LLE/Src/Debugger/Debugger.cpp @@ -189,7 +189,6 @@ void DSPDebuggerLLE::RebuildDisAsmListView() m_Disasm->Freeze(); m_Disasm->DeleteAllItems(); - char Buffer[256]; AssemblerSettings settings; const u16 *binbuf; @@ -198,8 +197,6 @@ void DSPDebuggerLLE::RebuildDisAsmListView() else binbuf = g_dsp.iram; - settings.buffer = Buffer; - settings.buffer_size = 256; settings.ext_separator = (char)0xff; settings.show_pc = false; diff --git a/Source/Plugins/Plugin_DSP_LLE/Src/Tools.cpp b/Source/Plugins/Plugin_DSP_LLE/Src/Tools.cpp index 2304655b7a..10392e8f0d 100644 --- a/Source/Plugins/Plugin_DSP_LLE/Src/Tools.cpp +++ b/Source/Plugins/Plugin_DSP_LLE/Src/Tools.cpp @@ -61,7 +61,6 @@ bool DisasmUCodeDump(u32 crc) if (t != NULL) { AssemblerSettings settings; - memset(&settings, 0, sizeof(settings)); settings.show_hex = true; settings.show_pc = true; settings.ext_separator = '\t';