diff options
| author | Michael Maltese <mchtly@gmail.com> | 2017-05-19 19:16:22 -0700 |
|---|---|---|
| committer | Michael Maltese <mchtly@gmail.com> | 2017-06-05 19:28:40 -0700 |
| commit | 1765e54ab3e084334179e5540066cb5bbf62ee33 (patch) | |
| tree | d3398b53a3fa879c1685e87b46c3ad0a5f6c34bf /Source/Core | |
| parent | 80710984dc9d0d9ad381277e0894b970604edfa8 (diff) | |
DSPCodeUtil: remove GenRandomCode
It was only used in a specific DSPTool test, which was removed because
non-deterministic tests aren't really useful.
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/DSP/DSPCodeUtil.cpp | 9 | ||||
| -rw-r--r-- | Source/Core/Core/DSP/DSPCodeUtil.h | 1 |
2 files changed, 0 insertions, 10 deletions
diff --git a/Source/Core/Core/DSP/DSPCodeUtil.cpp b/Source/Core/Core/DSP/DSPCodeUtil.cpp index 4db6f47c53..db8e6f6b24 100644 --- a/Source/Core/Core/DSP/DSPCodeUtil.cpp +++ b/Source/Core/Core/DSP/DSPCodeUtil.cpp @@ -100,15 +100,6 @@ bool Compare(const std::vector<u16>& code1, const std::vector<u16>& code2) return code1.size() == code2.size() && code1.size() == count_equal; } -void GenRandomCode(u32 size, std::vector<u16>& code) -{ - code.resize(size); - for (u32 i = 0; i < size; i++) - { - code[i] = rand() ^ (rand() << 8); - } -} - void CodeToHeader(const std::vector<u16>& code, std::string _filename, const char* name, std::string& header) { diff --git a/Source/Core/Core/DSP/DSPCodeUtil.h b/Source/Core/Core/DSP/DSPCodeUtil.h index 5fe8d64f30..a4906746ac 100644 --- a/Source/Core/Core/DSP/DSPCodeUtil.h +++ b/Source/Core/Core/DSP/DSPCodeUtil.h @@ -14,7 +14,6 @@ namespace DSP bool Assemble(const std::string& text, std::vector<u16>& code, bool force = false); bool Disassemble(const std::vector<u16>& code, bool line_numbers, std::string& text); bool Compare(const std::vector<u16>& code1, const std::vector<u16>& code2); -void GenRandomCode(u32 size, std::vector<u16>& code); void CodeToHeader(const std::vector<u16>& code, std::string _filename, const char* name, std::string& header); void CodesToHeader(const std::vector<u16>* codes, const std::vector<std::string>* filenames, |
