VirtualBox

Changeset 101919 in vbox for trunk/src/libs/xpcom18a4


Ignore:
Timestamp:
Nov 7, 2023 9:46:40 AM (15 months ago)
Author:
vboxsync
Message:

libs/xpcom/python: Get rid of the log to mozilla console service code because it isn't used (and even if there is no listener ever registered for the console service anywhere so it would just go straight to /dev/null anyway), bugref:10545 [missed something]

Location:
trunk/src/libs/xpcom18a4/python/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/python/src/ErrorUtils.cpp

    r73153 r101919  
    4848#include "PyXPCOM_std.h"
    4949#include "nsReadableUtils.h"
    50 #include <nsIConsoleService.h>
    5150#ifdef VBOX
    5251# include <nsIExceptionService.h>
     
    6463static void _PanicErrorWrite(const char *msg)
    6564{
    66         nsCOMPtr<nsIConsoleService> consoleService = do_GetService(NS_CONSOLESERVICE_CONTRACTID);
    67         if (consoleService)
    68                 consoleService->LogStringMessage(NS_ConvertASCIItoUCS2(msg).get());
    6965        PR_fprintf(PR_STDERR,"%s\n", msg);
    7066}
  • trunk/src/libs/xpcom18a4/python/src/module/_xpcom.cpp

    r101918 r101919  
    5252#include "nsIComponentRegistrar.h"
    5353#include "nsIComponentManagerObsolete.h"
    54 #include "nsIConsoleService.h"
    5554#include "nspr.h" // PR_fprintf
    5655#ifdef VBOX
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette