From f9e5cd8c3f13e5ea9e0b274398704b2ac2a340a2 Mon Sep 17 00:00:00 2001 From: getnamo Date: Thu, 17 Nov 2022 00:24:58 -0800 Subject: [PATCH] minor cleanup --- Source/GlobalEventSystem/Private/GESHandler.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Source/GlobalEventSystem/Private/GESHandler.cpp b/Source/GlobalEventSystem/Private/GESHandler.cpp index e43e03f..684c339 100644 --- a/Source/GlobalEventSystem/Private/GESHandler.cpp +++ b/Source/GlobalEventSystem/Private/GESHandler.cpp @@ -563,14 +563,9 @@ void FGESHandler::EmitEvent(const FGESEmitContext& EmitData, UStruct* Struct, vo FField* OldProperty = Class->ChildProperties; - - //GetTransientPackage(), EmitData.WorldContext - //UScriptStruct* NewStruct = NewObject(GetTransientPackage(), *Struct->GetName(), RF_NoFlags); - FStructProperty* StructProperty = new FStructProperty(FFieldVariant(Class), TEXT("StructProperty"), RF_NoFlags); StructProperty->Struct = (UScriptStruct*)Struct; StructProperty->ElementSize = Struct->GetStructureSize(); - //NewStruct->AddCppProperty(StructProperty); //undo what we just did so it won't be traversed because of init Class->ChildProperties = OldProperty; @@ -581,7 +576,6 @@ void FGESHandler::EmitEvent(const FGESEmitContext& EmitData, UStruct* Struct, vo Buffer.SetNum(Size); //StructProperty->CopyCompleteValue(Buffer.GetData(), StructPtr); - FPlatformMemory::Memcpy(Buffer.GetData(), StructPtr, Size); PropData.Property = StructProperty;