diff options
author | Moonchild <moonchild@palemoon.org> | 2021-06-21 17:52:42 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2021-06-21 17:52:42 +0000 |
commit | a60cfaa741da895544292d9c4a06beb60c438972 (patch) | |
tree | 0fcd737a94f1b9f4807c159a66bdc6a214f1a5db /js | |
parent | 47d4db87f2907600f711dfa6f1707d0c68f674a0 (diff) | |
download | aura-central-a60cfaa741da895544292d9c4a06beb60c438972.tar.gz |
Issue mcp-graveyard/UXP%1751 - Remove Mac code behind MOZ_WIDGET_TOOLKIT == 'cocoa'
Diffstat (limited to 'js')
-rw-r--r-- | js/xpconnect/shell/moz.build | 5 | ||||
-rw-r--r-- | js/xpconnect/shell/xpcshellMacUtils.h | 8 | ||||
-rw-r--r-- | js/xpconnect/shell/xpcshellMacUtils.mm | 18 |
3 files changed, 0 insertions, 31 deletions
diff --git a/js/xpconnect/shell/moz.build b/js/xpconnect/shell/moz.build index c1789fdc7..3361b7d81 100644 --- a/js/xpconnect/shell/moz.build +++ b/js/xpconnect/shell/moz.build @@ -14,11 +14,6 @@ SOURCES += [ 'xpcshell.cpp', ] -if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa': - SOURCES += [ - 'xpcshellMacUtils.mm', - ] - include('/ipc/chromium/chromium-config.mozbuild') LOCAL_INCLUDES += [ diff --git a/js/xpconnect/shell/xpcshellMacUtils.h b/js/xpconnect/shell/xpcshellMacUtils.h deleted file mode 100644 index 2e6b5cb35..000000000 --- a/js/xpconnect/shell/xpcshellMacUtils.h +++ /dev/null @@ -1,8 +0,0 @@ -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -// Functions to setup and release the Mac memory pool -void InitAutoreleasePool(); -void FinishAutoreleasePool(); diff --git a/js/xpconnect/shell/xpcshellMacUtils.mm b/js/xpconnect/shell/xpcshellMacUtils.mm deleted file mode 100644 index 61d6a9ea9..000000000 --- a/js/xpconnect/shell/xpcshellMacUtils.mm +++ /dev/null @@ -1,18 +0,0 @@ -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -#include <Foundation/Foundation.h> - -static NSAutoreleasePool *pool = NULL; - -void InitAutoreleasePool() -{ - pool = [[NSAutoreleasePool alloc] init]; -} - -void FinishAutoreleasePool() -{ - [pool release]; -} |