Remove Unused OEMCrypto Wrapper Methods

(This is a merge of
https://widevine-internal-review.googlesource.com/#/c/10141/
from the Widevine CDM repo.)

Over the course of revising the CAST support, the need for the
MediaDrm to call open and close session was removed. However, the
methods to do that were not. This removes the unused code.

Change-Id: I577f5314b6b20f36c308ac6753f1084ff3c707d9
This commit is contained in:
John "Juce" Bruce
2014-05-14 16:03:26 -07:00
parent 7f9bff5ef5
commit d6c98f1290
2 changed files with 0 additions and 12 deletions

View File

@@ -57,14 +57,6 @@ class WVGenericCryptoInterface {
algorithm, signature, signature_length); algorithm, signature, signature_length);
} }
virtual OEMCryptoResult openSession(OEMCrypto_SESSION *session) {
return OEMCrypto_OpenSession(session);
}
virtual OEMCryptoResult closeSession(OEMCrypto_SESSION session) {
return OEMCrypto_CloseSession(session);
}
virtual OEMCryptoResult loadDeviceRSAKey(OEMCrypto_SESSION session, virtual OEMCryptoResult loadDeviceRSAKey(OEMCrypto_SESSION session,
const uint8_t* wrapped_rsa_key, const uint8_t* wrapped_rsa_key,
size_t wrapped_rsa_key_length) { size_t wrapped_rsa_key_length) {

View File

@@ -96,10 +96,6 @@ class MockCrypto : public WVGenericCryptoInterface {
size_t, OEMCrypto_Algorithm, size_t, OEMCrypto_Algorithm,
const uint8_t*, size_t)); const uint8_t*, size_t));
MOCK_METHOD1(openSession, OEMCryptoResult(OEMCrypto_SESSION*));
MOCK_METHOD1(closeSession, OEMCryptoResult(OEMCrypto_SESSION));
MOCK_METHOD3(loadDeviceRSAKey, OEMCryptoResult(OEMCrypto_SESSION, MOCK_METHOD3(loadDeviceRSAKey, OEMCryptoResult(OEMCrypto_SESSION,
const uint8_t*, size_t)); const uint8_t*, size_t));