mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 864899: Remove unused static helper-function "Warn()" from PeerConnectionImpl.cpp, to fix build warning. r=jib
This commit is contained in:
parent
7d6150f701
commit
c7bcce2298
@ -364,23 +364,6 @@ PeerConnectionImpl::CreateRemoteSourceStreamInfo(nsRefPtr<RemoteSourceStreamInfo
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef MOZILLA_INTERNAL_API
|
||||
static void
|
||||
Warn(JSContext* aCx, const nsCString& aMsg) {
|
||||
CSFLogError(logTag, "Warning: %s", aMsg.get());
|
||||
nsIScriptContext* sc = GetScriptContextFromJSContext(aCx);
|
||||
if (sc) {
|
||||
nsCOMPtr<nsIDocument> doc;
|
||||
doc = nsContentUtils::GetDocumentFromScriptContext(sc);
|
||||
if (doc) {
|
||||
// Passing in line-# 1 hides peerconnection.js (shows document instead)
|
||||
nsContentUtils::ReportToConsoleNonLocalized(NS_ConvertUTF8toUTF16 (aMsg),
|
||||
nsIScriptError::warningFlag, logTag, doc, nullptr, EmptyString(), 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* In JS, an RTCConfiguration looks like this:
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user