Skip to content

Commit

Permalink
Merge pull request #243 from UE4SS-RE/RemoveFncTimer
Browse files Browse the repository at this point in the history
Remove unused FunctionTimer functionality
  • Loading branch information
narknon authored Oct 31, 2023
2 parents a63e825 + fa7a121 commit 65630d2
Show file tree
Hide file tree
Showing 10 changed files with 3 additions and 412 deletions.
4 changes: 2 additions & 2 deletions UE4SS/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ target_compile_definitions(${TARGET} PRIVATE
# First party static build -> END

target_link_libraries(${TARGET} PUBLIC
File glaze::glaze DynamicOutput Unreal
SinglePassSigScanner LuaMadeSimple FunctionTimer
File glaze::glaze DynamicOutput
Unreal SinglePassSigScanner LuaMadeSimple
Function IniParser JSON
Input Constructs Helpers
MProgram ScopedTimer)
Expand Down
2 changes: 0 additions & 2 deletions UE4SS/src/Mod/LuaMod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
#include <UnrealCustom/CustomProperty.hpp>
#pragma warning(default : 4005)

#include <Timer/FunctionTimer.hpp>

namespace RC
{
Expand Down Expand Up @@ -108,7 +107,6 @@ namespace RC

static auto lua_unreal_script_function_hook_pre(Unreal::UnrealScriptFunctionCallableContext context, void* custom_data) -> void
{
TIME_FUNCTION()

// Fetch the data corresponding to this UFunction
auto& lua_data = *static_cast<LuaUnrealScriptFunctionData*>(custom_data);
Expand Down
1 change: 0 additions & 1 deletion UE4SS/src/Mod/Mod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
#include <UnrealCustom/CustomProperty.hpp>
#pragma warning(default : 4005)

#include <Timer/FunctionTimer.hpp>

namespace RC
{
Expand Down
8 changes: 1 addition & 7 deletions UE4SS/src/UE4SSProgram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
#include <SDKGenerator/UEHeaderGenerator.hpp>
#include <SigScanner/SinglePassSigScanner.hpp>
#include <Signatures.hpp>
#include <Timer/FunctionTimer.hpp>
#include <Timer/ScopedTimer.hpp>
#include <UE4SSProgram.hpp>
#include <Unreal/AGameMode.hpp>
Expand Down Expand Up @@ -160,7 +159,6 @@ namespace RC

UE4SSProgram::UE4SSProgram(const std::wstring& moduleFilePath, std::initializer_list<BinaryOptions> options) : MProgram(options)
{
TIME_FUNCTION()

s_program = this;

Expand Down Expand Up @@ -309,8 +307,6 @@ namespace RC

auto UE4SSProgram::init() -> void
{
TIME_FUNCTION();

try
{
setup_unreal();
Expand Down Expand Up @@ -1666,8 +1662,6 @@ namespace RC
// Do cleanup of static objects here
// This function is called right before the DLL detaches from the game
// Including when the player hits the 'X' button to exit the game
#if TIME_FUNCTION_MACRO_V2 == 0
FunctionTimerCollection::dump();
#endif

}
} // namespace RC
1 change: 0 additions & 1 deletion deps/first/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ add_subdirectory("Constructs")
add_subdirectory("DynamicOutput")
add_subdirectory("File")
add_subdirectory("Function")
add_subdirectory("FunctionTimer")
add_subdirectory("Helpers")
add_subdirectory("IniParser")
add_subdirectory("Input")
Expand Down
33 changes: 0 additions & 33 deletions deps/first/FunctionTimer/CMakeLists.txt

This file was deleted.

21 changes: 0 additions & 21 deletions deps/first/FunctionTimer/LICENSE

This file was deleted.

17 changes: 0 additions & 17 deletions deps/first/FunctionTimer/include/Timer/Common.hpp

This file was deleted.

Loading

0 comments on commit 65630d2

Please sign in to comment.