Bug 1432963 - Fixing workers headers - part 6 - Get rid of WorkerInlines.h, r=smaug

This commit is contained in:
Andrea Marchesini 2018-01-31 08:20:42 +01:00
parent 8582d79ad5
commit 2e874fc833
2 changed files with 0 additions and 26 deletions

View File

@ -83,7 +83,6 @@
#include "ServiceWorkerUpdateJob.h"
#include "ServiceWorkerUpdaterChild.h"
#include "SharedWorker.h"
#include "WorkerInlines.h"
#include "WorkerPrivate.h"
#include "WorkerRunnable.h"
#include "WorkerScope.h"

View File

@ -1,25 +0,0 @@
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
/* 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/. */
BEGIN_WORKERS_NAMESPACE
inline
void
SetJSPrivateSafeish(JSObject* aObj, PrivatizableBase* aBase)
{
JS_SetPrivate(aObj, aBase);
}
template <class Derived>
inline
Derived*
GetJSPrivateSafeish(JSObject* aObj)
{
return static_cast<Derived*>(
static_cast<PrivatizableBase*>(JS_GetPrivate(aObj)));
}
END_WORKERS_NAMESPACE