Bug 864899: Remove unused static helper-function "Warn()" from PeerConnectionImpl.cpp, to fix build warning. r=jib

This commit is contained in:
Daniel Holbert 2013-04-23 17:00:10 -07:00
parent 7d6150f701
commit c7bcce2298

View File

@ -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:
*