From b7998b6f663eb13ccdfaa7473dd1e9b9288771cd Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 14 Sep 2011 16:49:54 +0200 Subject: No need to bark about G_SLICE on stderr. --- sal/rtl/source/alloc_global.c | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) (limited to 'sal/rtl/source') diff --git a/sal/rtl/source/alloc_global.c b/sal/rtl/source/alloc_global.c index e93c666f596e..57728f61ffb4 100644 --- a/sal/rtl/source/alloc_global.c +++ b/sal/rtl/source/alloc_global.c @@ -39,21 +39,8 @@ AllocMode alloc_mode = AMode_UNSET; #if !defined(FORCE_SYSALLOC) static void determine_alloc_mode(void) { - /* This shouldn't happen, but still ... */ - if (alloc_mode != AMode_UNSET) - return; - - if (getenv("G_SLICE") != NULL) - { - alloc_mode = AMode_SYSTEM; - fprintf(stderr, "LibreOffice: Using system memory allocator.\n"); - fprintf(stderr, "LibreOffice: This is for debugging only. To disable,\n"); - fprintf(stderr, "LibreOffice: unset the environment variable G_SLICE.\n"); - } - else - { - alloc_mode = AMode_CUSTOM; - } + OSL_ASSERT(alloc_mode == AMode_UNSET); + alloc_mode = (getenv("G_SLICE") == NULL ? AMode_CUSTOM : AMode_SYSTEM); } /* ================================================================= * -- cgit v1.2.3