Skip to content

Commit ca30500

Browse files
committed
remove unecessary checks for config refelections
Signed-off-by: Wojciech Czerski <[email protected]>
1 parent 15b1771 commit ca30500

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

Gems/FPSProfiler/Code/Source/Configurations/FPSProfilerConfig.cpp

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@ namespace FPSProfiler::Configs
99
{
1010
if (auto serializeContext = azrtti_cast<AZ::SerializeContext*>(context))
1111
{
12-
if (serializeContext->FindClassData(azrtti_typeid<FileSaveSettings>())) // Prevent duplicate registration
13-
{
14-
return;
15-
}
16-
1712
serializeContext->Class<FileSaveSettings>()
1813
->Version(0)
1914
->Field("m_OutputFilename", &FileSaveSettings::m_OutputFilename)
@@ -86,11 +81,6 @@ namespace FPSProfiler::Configs
8681
{
8782
if (auto serializeContext = azrtti_cast<AZ::SerializeContext*>(context))
8883
{
89-
if (serializeContext->FindClassData(azrtti_typeid<RecordSettings>())) // Prevent duplicate registration
90-
{
91-
return;
92-
}
93-
9484
serializeContext->Class<RecordSettings>()
9585
->Version(0)
9686
->Field("m_recordType", &RecordSettings::m_recordType)
@@ -152,11 +142,6 @@ namespace FPSProfiler::Configs
152142

153143
if (auto behaviorContext = azrtti_cast<AZ::BehaviorContext*>(context))
154144
{
155-
if (behaviorContext->m_classes.contains("RecordSettings"))
156-
{
157-
return;
158-
}
159-
160145
behaviorContext->Class<RecordSettings>("RecordSettings")
161146
->Attribute(AZ::Script::Attributes::Category, "FPSProfiler")
162147
->Constructor<>()
@@ -171,11 +156,6 @@ namespace FPSProfiler::Configs
171156
{
172157
if (auto* serializeContext = azrtti_cast<AZ::SerializeContext*>(context))
173158
{
174-
if (serializeContext->FindClassData(azrtti_typeid<PrecisionSettings>())) // Prevent duplicate registration
175-
{
176-
return;
177-
}
178-
179159
serializeContext->Class<PrecisionSettings>()
180160
->Version(0)
181161
->Field("m_NearZeroPrecision", &PrecisionSettings::m_NearZeroPrecision)
@@ -249,11 +229,6 @@ namespace FPSProfiler::Configs
249229
{
250230
if (auto* serializeContext = azrtti_cast<AZ::SerializeContext*>(context))
251231
{
252-
if (serializeContext->FindClassData(azrtti_typeid<DebugSettings>())) // Prevent duplicate registration
253-
{
254-
return;
255-
}
256-
257232
serializeContext->Class<DebugSettings>()
258233
->Version(0)
259234
->Field("m_PrintDebugInfo", &DebugSettings::m_PrintDebugInfo)

0 commit comments

Comments
 (0)