Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 19e9df6

Browse files
committed
Bug 1691168 - Remove nsCocoaDebugUtils. r=spohl
Depends on D104299 Differential Revision: https://phabricator.services.mozilla.com/D104300
1 parent 94537a3 commit 19e9df6

File tree

4 files changed

+4
-357
lines changed

4 files changed

+4
-357
lines changed

widget/cocoa/moz.build

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ EXPORTS += [
2525
"mozView.h",
2626
"nsBidiKeyboard.h",
2727
"nsChangeObserver.h",
28-
"nsCocoaDebugUtils.h",
2928
"nsCocoaFeatures.h",
3029
"nsCocoaUtils.h",
3130
]
@@ -87,7 +86,6 @@ SOURCES += [
8786
"MediaKeysEventSourceFactory.cpp",
8887
"nsChildView.mm",
8988
"nsClipboard.mm",
90-
"nsCocoaDebugUtils.mm",
9189
"nsDragService.mm",
9290
"nsNativeThemeCocoa.mm",
9391
]

widget/cocoa/nsCocoaDebugUtils.h

Lines changed: 0 additions & 115 deletions
This file was deleted.

widget/cocoa/nsCocoaDebugUtils.mm

Lines changed: 0 additions & 236 deletions
This file was deleted.

widget/cocoa/nsSandboxViolationSink.mm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@
55

66
#include "nsSandboxViolationSink.h"
77

8+
#import <Foundation/NSObjCRuntime.h>
9+
810
#include <unistd.h>
911
#include <time.h>
1012
#include <asl.h>
1113
#include <dispatch/dispatch.h>
1214
#include <notify.h>
13-
#include "nsCocoaDebugUtils.h"
1415
#include "mozilla/Preferences.h"
1516
#include "mozilla/Sprintf.h"
1617

@@ -98,9 +99,8 @@
9899

99100
const char* pid_str = asl_get(found, ASL_KEY_REF_PID);
100101
const char* message_str = asl_get(found, ASL_KEY_MSG);
101-
nsCocoaDebugUtils::DebugLog(
102-
"nsSandboxViolationSink::ViolationHandler(): id %s, pid %s, message %s", id_str, pid_str,
103-
message_str);
102+
NSLog(@"nsSandboxViolationSink::ViolationHandler(): id %s, pid %s, message %s", id_str,
103+
pid_str, message_str);
104104
}
105105
aslresponse_free(response);
106106
}

0 commit comments

Comments
 (0)