1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 10:42:36 +01:00

Purge unused typeid() invocations

This commit is contained in:
Nekotekina 2021-01-27 22:46:30 +03:00
parent 28feea0447
commit 34274ec391
6 changed files with 2 additions and 11 deletions

View File

@ -4,7 +4,6 @@
#include "util/yaml.hpp"
#include <typeinfo>
#include <charconv>
LOG_CHANNEL(cfg_log, "CFG");

View File

@ -7,7 +7,6 @@
#include <algorithm>
#include <cstring>
#include <cerrno>
#include <typeinfo>
#include <map>
#include "util/asm.hpp"
@ -228,7 +227,7 @@ namespace fs
stat_t file_base::stat()
{
fmt::throw_exception("fs::file::stat() not supported for %s", typeid(*this).name());
fmt::throw_exception("fs::file::stat() not supported.");
}
void file_base::sync()

View File

@ -8,7 +8,6 @@
#include "Emu/RSX/RSXThread.h"
#include "Thread.h"
#include "Utilities/JIT.h"
#include <typeinfo>
#include <thread>
#include <sstream>

View File

@ -856,7 +856,7 @@ std::vector<std::pair<u32, u32>> cpu_thread::dump_callstack_list() const
std::string cpu_thread::dump_misc() const
{
return fmt::format("Type: %s\n" "State: %s\n", typeid(*this).name(), state.load());
return fmt::format("Type: %s\n" "State: %s\n", id_type() == 1 ? "PPU" : id_type() == 2 ? "SPU" : "CPU", state.load());
}
bool cpu_thread::suspend_work::push(cpu_thread* _this) noexcept

View File

@ -3,7 +3,6 @@
#include "PPUFunction.h"
#include "PPUCallback.h"
#include "ErrorCodes.h"
#include <typeinfo>
#include "Emu/Memory/vm_var.h"
// Helper function
@ -41,7 +40,6 @@ struct ppu_static_function
const char* name;
u32 index; // Index for ppu_function_manager
u32 flags;
const char* type;
std::vector<const char*> args; // Arg names
const u32* export_addr;
@ -60,7 +58,6 @@ struct ppu_static_variable
void(*init)(); // Variable initialization function
u32 size;
u32 align;
const char* type;
u32 flags;
u32 addr;
const u32* export_addr;
@ -125,7 +122,6 @@ public:
info.name = name;
info.index = ppu_function_manager::register_function<decltype(Func), Func>(func);
info.flags = 0;
info.type = typeid(*Func).name();
registered<Func>::info = &info;
@ -152,7 +148,6 @@ public:
info.init = [] {};
info.size = gvar::alloc_size;
info.align = gvar::alloc_align;
info.type = typeid(*Var).name();
info.flags = 0;
info.addr = 0;

View File

@ -39,7 +39,6 @@
#include <cereal/types/unordered_map.hpp>
#include <thread>
#include <typeinfo>
#include <queue>
#include <fstream>
#include <memory>