Removed all calls to WLog_Init and WLog_Uninit

Since the calls are no longer required remove their usage.
This commit is contained in:
Armin Novak 2018-04-03 13:06:41 +02:00
parent d249335708
commit e0d112d548
11 changed files with 2 additions and 17 deletions

View File

@ -849,7 +849,6 @@ BOOL VCAPITYPE VirtualChannelEntryEx(PCHANNEL_ENTRY_POINTS pEntryPoints, PVOID p
isFreerdp = TRUE;
}
WLog_Init();
rail->log = WLog_Get("com.freerdp.channels.rail.client");
WLog_Print(rail->log, WLOG_DEBUG, "VirtualChannelEntryEx");
CopyMemory(&(rail->channelEntryPoints), pEntryPoints,

View File

@ -840,7 +840,6 @@ UINT DeviceServiceEntry(PDEVICE_SERVICE_ENTRY_POINTS pEntryPoints)
if ((name && name[0]) && (path && path[0]))
{
wLog* log;
WLog_Init();
log = WLog_Get("com.freerdp.channel.serial.client");
WLog_Print(log, WLOG_DEBUG, "initializing");
#ifndef __linux__ /* to be removed */

View File

@ -58,7 +58,6 @@ rdpContext* freerdp_client_context_new(RDP_CLIENT_ENTRY_POINTS* pEntryPoints)
if (!pEntryPoints)
return NULL;
WLog_Init();
IFCALL(pEntryPoints->GlobalInit);
instance = freerdp_new();
@ -116,7 +115,6 @@ void freerdp_client_context_free(rdpContext* context)
free(instance->pClientEntryPoints);
freerdp_free(instance);
}
WLog_Uninit();
}
int freerdp_client_start(rdpContext* context)

View File

@ -688,7 +688,6 @@ rdpGlyphCache* glyph_cache_new(rdpSettings* settings)
if (!glyphCache)
return NULL;
WLog_Init();
glyphCache->log = WLog_Get("com.freerdp.cache.glyph");
glyphCache->settings = settings;
glyphCache->context = ((freerdp*) settings->instance)->update->context;

View File

@ -281,7 +281,6 @@ NSC_CONTEXT* nsc_context_new(void)
if (!context->priv)
goto error_priv;
WLog_Init();
context->priv->log = WLog_Get("com.freerdp.codec.nsc");
WLog_OpenAppender(context->priv->log);
context->BitmapData = NULL;

View File

@ -220,7 +220,6 @@ RFX_CONTEXT* rfx_context_new(BOOL encoder)
if (!priv)
goto error_priv;
WLog_Init();
priv->log = WLog_Get("com.freerdp.codec.rfx");
WLog_OpenAppender(priv->log);
#ifdef WITH_DEBUG_RFX

View File

@ -2057,7 +2057,6 @@ rdpUpdate* update_new(rdpRdp* rdp)
if (!update)
return NULL;
WLog_Init();
update->log = WLog_Get("com.freerdp.core.update");
update->bitmap_update.count = 64;
update->bitmap_update.rectangles = (BITMAP_DATA*) calloc(

View File

@ -879,7 +879,6 @@ int TestPrimitivesYUV(int argc, char* argv[])
int rc = -1;
prim_test_setup(FALSE);
primitives_t* prims = primitives_get();
WLog_Init();
for (x = 0; x < 10; x++)
{
@ -974,7 +973,6 @@ int TestPrimitivesYUV(int argc, char* argv[])
rc = 0;
end:
WLog_Uninit();
return rc;
}

View File

@ -182,7 +182,9 @@ WINPR_API BOOL WLog_Layout_SetPrefixFormat(wLog* log, wLogLayout* layout,
WINPR_API wLog* WLog_GetRoot(void);
WINPR_API wLog* WLog_Get(LPCSTR name);
/** Deprecated */
WINPR_API BOOL WLog_Init(void);
/** Deprecated */
WINPR_API BOOL WLog_Uninit(void);
typedef BOOL (*wLogCallbackMessage_t)(const wLogMessage* msg);

View File

@ -21,8 +21,6 @@ int TestWLog(int argc, char* argv[])
goto out;
}
WLog_Init();
root = WLog_GetRoot();
WLog_SetLogAppenderType(root, WLOG_APPENDER_BINARY);
@ -56,8 +54,6 @@ int TestWLog(int argc, char* argv[])
WLog_CloseAppender(root);
WLog_Uninit();
if ((wlog_file = GetCombinedPath(tmp_path, "test_w.log")))
DeleteFileA(wlog_file);

View File

@ -92,7 +92,6 @@ int TestWLogCallback(int argc, char* argv[])
wLogCallbacks callbacks;
function = __FUNCTION__;
WLog_Init();
root = WLog_GetRoot();
@ -130,8 +129,6 @@ int TestWLogCallback(int argc, char* argv[])
WLog_CloseAppender(root);
WLog_Uninit();
return success ? 0 : -1;
}