DSPCodeUtil: remove GenRandomCode
It was only used in a specific DSPTool test, which was removed because non-deterministic tests aren't really useful.
This commit is contained in:
parent
80710984dc
commit
1765e54ab3
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue