Bug 1531156 - Part 2: Some code simplification that part 1 lets us do. r=smaug,jib

Differential Revision: https://phabricator.services.mozilla.com/D22209

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Byron Campen [:bwc] 2019-03-11 21:01:21 +00:00
Родитель e580ea2314
Коммит c630882575
3 изменённых файлов: 0 добавлений и 20 удалений

Просмотреть файл

@ -111,10 +111,8 @@ interface PeerConnectionImpl {
attribute RTCCertificate certificate;
[Constant]
readonly attribute DOMString fingerprint;
readonly attribute DOMString localDescription;
readonly attribute DOMString currentLocalDescription;
readonly attribute DOMString pendingLocalDescription;
readonly attribute DOMString remoteDescription;
readonly attribute DOMString currentRemoteDescription;
readonly attribute DOMString pendingRemoteDescription;

Просмотреть файл

@ -2121,14 +2121,6 @@ PeerConnectionImpl::GetFingerprint(char** fingerprint) {
return NS_OK;
}
void PeerConnectionImpl::GetLocalDescription(nsAString& aSDP) {
PC_AUTO_ENTER_API_CALL_NO_CHECK();
std::string localSdp =
mJsepSession->GetLocalDescription(kJsepDescriptionPendingOrCurrent);
aSDP = NS_ConvertASCIItoUTF16(localSdp.c_str());
}
void PeerConnectionImpl::GetCurrentLocalDescription(nsAString& aSDP) {
PC_AUTO_ENTER_API_CALL_NO_CHECK();
@ -2145,14 +2137,6 @@ void PeerConnectionImpl::GetPendingLocalDescription(nsAString& aSDP) {
aSDP = NS_ConvertASCIItoUTF16(localSdp.c_str());
}
void PeerConnectionImpl::GetRemoteDescription(nsAString& aSDP) {
PC_AUTO_ENTER_API_CALL_NO_CHECK();
std::string remoteSdp =
mJsepSession->GetRemoteDescription(kJsepDescriptionPendingOrCurrent);
aSDP = NS_ConvertASCIItoUTF16(remoteSdp.c_str());
}
void PeerConnectionImpl::GetCurrentRemoteDescription(nsAString& aSDP) {
PC_AUTO_ENTER_API_CALL_NO_CHECK();

Просмотреть файл

@ -420,11 +420,9 @@ class PeerConnectionImpl final
delete[] tmp;
}
void GetLocalDescription(nsAString& aSDP);
void GetCurrentLocalDescription(nsAString& aSDP);
void GetPendingLocalDescription(nsAString& aSDP);
void GetRemoteDescription(nsAString& aSDP);
void GetCurrentRemoteDescription(nsAString& aSDP);
void GetPendingRemoteDescription(nsAString& aSDP);