From 3ba590e3f9b2b153c7ca4f5891ead8ded356c6a7 Mon Sep 17 00:00:00 2001 From: goat Date: Mon, 13 Jan 2020 22:33:49 +0900 Subject: [PATCH] refactor: remove unnecessary logging from libc hooks --- Dalamud/Game/Internal/Libc/LibcFunction.cs | 2 -- Dalamud/Game/Internal/Libc/OwnedStdString.cs | 2 -- 2 files changed, 4 deletions(-) diff --git a/Dalamud/Game/Internal/Libc/LibcFunction.cs b/Dalamud/Game/Internal/Libc/LibcFunction.cs index 88261c3f7..9ea4dc6a8 100644 --- a/Dalamud/Game/Internal/Libc/LibcFunction.cs +++ b/Dalamud/Game/Internal/Libc/LibcFunction.cs @@ -26,8 +26,6 @@ namespace Dalamud.Game.Internal.Libc { } public OwnedStdString NewString(byte[] content) { - Log.Verbose("Allocating"); - // While 0x70 bytes in the memory should be enough in DX11 version, // I don't trust my analysis so we're just going to allocate almost two times more than that. var pString = Marshal.AllocHGlobal(256); diff --git a/Dalamud/Game/Internal/Libc/OwnedStdString.cs b/Dalamud/Game/Internal/Libc/OwnedStdString.cs index 6e3b822dc..ea68d8f91 100644 --- a/Dalamud/Game/Internal/Libc/OwnedStdString.cs +++ b/Dalamud/Game/Internal/Libc/OwnedStdString.cs @@ -39,8 +39,6 @@ namespace Dalamud.Game.Internal.Libc { // Something got seriously fucked. throw new AccessViolationException(); } - - Log.Verbose("Deallocting {Addr}", Address); // Deallocate inner string first this.dealloc(Address);