Bug 1205744 - Removed redundant method IsContextRunningJS. r=h4writer

This commit is contained in:
sajitk 2015-09-18 20:18:00 +02:00
parent 958b1fed19
commit 7d158b93c0
3 changed files with 1 additions and 10 deletions

View File

@ -2827,7 +2827,7 @@ nsObjectLoadingContent::ScriptRequestPluginInstance(JSContext* aCx,
aCx == nsContentUtils::GetCurrentJSContext());
bool callerIsContentJS = (!nsContentUtils::IsCallerChrome() &&
!nsContentUtils::IsCallerContentXBL() &&
js::IsContextRunningJS(aCx));
JS_IsRunning(aCx));
nsCOMPtr<nsIContent> thisContent =
do_QueryInterface(static_cast<nsIImageLoadingContent*>(this));

View File

@ -1017,12 +1017,6 @@ js::SetActivityCallback(JSRuntime* rt, ActivityCallback cb, void* arg)
rt->activityCallbackArg = arg;
}
JS_FRIEND_API(bool)
js::IsContextRunningJS(JSContext* cx)
{
return cx->currentlyRunning();
}
JS_FRIEND_API(void)
JS::NotifyDidPaint(JSRuntime* rt)
{

View File

@ -1086,9 +1086,6 @@ SetActivityCallback(JSRuntime* rt, ActivityCallback cb, void* arg);
extern JS_FRIEND_API(const JSStructuredCloneCallbacks*)
GetContextStructuredCloneCallbacks(JSContext* cx);
extern JS_FRIEND_API(bool)
IsContextRunningJS(JSContext* cx);
typedef bool
(* DOMInstanceClassHasProtoAtDepth)(const Class* instanceClass,
uint32_t protoID, uint32_t depth);