mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 06:21:26 +12:00
fixed_typemap.hpp: remove useless reporters
This commit is contained in:
parent
d1e1c14dc3
commit
673e84920b
2 changed files with 1 additions and 23 deletions
|
@ -2113,16 +2113,4 @@ void Emulator::ConfigurePPUCache()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
template <>
|
|
||||||
void stx::manual_fixed_typemap<void>::init_reporter(unsigned long long created) const noexcept
|
|
||||||
{
|
|
||||||
sys_log.notice("[ord:%u] Object was created", created);
|
|
||||||
}
|
|
||||||
|
|
||||||
template <>
|
|
||||||
void stx::manual_fixed_typemap<void>::destroy_reporter(unsigned long long created) const noexcept
|
|
||||||
{
|
|
||||||
sys_log.notice("[ord:%u] Object is destroying", created);
|
|
||||||
}
|
|
||||||
|
|
||||||
Emulator Emu;
|
Emulator Emu;
|
||||||
|
|
|
@ -21,7 +21,7 @@ namespace stx
|
||||||
}
|
}
|
||||||
|
|
||||||
// Typemap with exactly one object of each used type, created on init() and destroyed on clear()
|
// Typemap with exactly one object of each used type, created on init() and destroyed on clear()
|
||||||
template <typename /*Tag*/, bool Report = true>
|
template <typename Tag>
|
||||||
class manual_fixed_typemap
|
class manual_fixed_typemap
|
||||||
{
|
{
|
||||||
// Save default constructor and destructor
|
// Save default constructor and destructor
|
||||||
|
@ -70,12 +70,6 @@ namespace stx
|
||||||
// Used to generate creation order (increased on every construction)
|
// Used to generate creation order (increased on every construction)
|
||||||
unsigned long long m_init_count = 0;
|
unsigned long long m_init_count = 0;
|
||||||
|
|
||||||
// Body is somewhere else if enabled
|
|
||||||
void init_reporter(unsigned long long created) const noexcept;
|
|
||||||
|
|
||||||
// Body is somewhere else if enabled
|
|
||||||
void destroy_reporter(unsigned long long created) const noexcept;
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
constexpr manual_fixed_typemap() noexcept = default;
|
constexpr manual_fixed_typemap() noexcept = default;
|
||||||
|
|
||||||
|
@ -153,8 +147,6 @@ namespace stx
|
||||||
// Destroy objects in correct order
|
// Destroy objects in correct order
|
||||||
for (unsigned i = 0; i < _max; i++)
|
for (unsigned i = 0; i < _max; i++)
|
||||||
{
|
{
|
||||||
if constexpr (Report)
|
|
||||||
destroy_reporter(all_data[i].created);
|
|
||||||
all_data[i].destroy(*all_data[i].object_pointer);
|
all_data[i].destroy(*all_data[i].object_pointer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -173,8 +165,6 @@ namespace stx
|
||||||
if (m_list[type.index()])
|
if (m_list[type.index()])
|
||||||
{
|
{
|
||||||
m_order[type.index()] = ++m_init_count;
|
m_order[type.index()] = ++m_init_count;
|
||||||
if constexpr (Report)
|
|
||||||
init_reporter(m_init_count);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue