From 1765e54ab3e084334179e5540066cb5bbf62ee33 Mon Sep 17 00:00:00 2001 From: Michael Maltese Date: Fri, 19 May 2017 19:16:22 -0700 Subject: [PATCH] DSPCodeUtil: remove GenRandomCode It was only used in a specific DSPTool test, which was removed because non-deterministic tests aren't really useful. --- Source/Core/Core/DSP/DSPCodeUtil.cpp | 9 --------- Source/Core/Core/DSP/DSPCodeUtil.h | 1 - 2 files changed, 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& code1, const std::vector& code2) return code1.size() == code2.size() && code1.size() == count_equal; } -void GenRandomCode(u32 size, std::vector& code) -{ - code.resize(size); - for (u32 i = 0; i < size; i++) - { - code[i] = rand() ^ (rand() << 8); - } -} - void CodeToHeader(const std::vector& 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& code, bool force = false); bool Disassemble(const std::vector& code, bool line_numbers, std::string& text); bool Compare(const std::vector& code1, const std::vector& code2); -void GenRandomCode(u32 size, std::vector& code); void CodeToHeader(const std::vector& code, std::string _filename, const char* name, std::string& header); void CodesToHeader(const std::vector* codes, const std::vector* filenames,