From cece1cb715b43fd99ec3dda926abe30181a8f5dd Mon Sep 17 00:00:00 2001 From: trav90 Date: Sat, 9 Feb 2019 07:50:35 -0600 Subject: [EME] Remove WidevineDecryptor::OnLegacySessionError Not needed for more recent CDM versions. --- .../gmp/widevine-adapter/WidevineDecryptor.cpp | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'dom/media/gmp') diff --git a/dom/media/gmp/widevine-adapter/WidevineDecryptor.cpp b/dom/media/gmp/widevine-adapter/WidevineDecryptor.cpp index 150480644..f89888a72 100644 --- a/dom/media/gmp/widevine-adapter/WidevineDecryptor.cpp +++ b/dom/media/gmp/widevine-adapter/WidevineDecryptor.cpp @@ -485,28 +485,6 @@ WidevineDecryptor::OnSessionClosed(const char* aSessionId, mCallback->SessionClosed(aSessionId, aSessionIdSize); } -void -WidevineDecryptor::OnLegacySessionError(const char* aSessionId, - uint32_t aSessionIdLength, - Error aError, - uint32_t aSystemCode, - const char* aErrorMessage, - uint32_t aErrorMessageLength) -{ - if (!mCallback) { - Log("Decryptor::OnLegacySessionError(sid=%s, error=%d) FAIL; !mCallback", - aSessionId, (int)aError); - return; - } - Log("Decryptor::OnLegacySessionError(sid=%s, error=%d)", aSessionId, (int)aError); - mCallback->SessionError(aSessionId, - aSessionIdLength, - ToGMPDOMException(aError), - aSystemCode, - aErrorMessage, - aErrorMessageLength); -} - void WidevineDecryptor::SendPlatformChallenge(const char* aServiceId, uint32_t aServiceIdSize, -- cgit v1.2.3