diff options
author | Doug Kwan <> | 2009-03-28 21:53:49 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-28 21:53:49 -0700 |
commit | d94755bf33193f50b1a63778788e82b5257f22c2 (patch) | |
tree | 54b8520f3397f00e4c735964f1b6c848abc99884 /media/libdrm | |
parent | d2e72d97c197ca198089ef48194620cb8cdcbe0d (diff) | |
download | frameworks_base-d94755bf33193f50b1a63778788e82b5257f22c2.zip frameworks_base-d94755bf33193f50b1a63778788e82b5257f22c2.tar.gz frameworks_base-d94755bf33193f50b1a63778788e82b5257f22c2.tar.bz2 |
AI 143430: Remove broken and unused code.
This CL removes RoManager::getDevicePrivateKey() and its declaration.
The method is not used anywhere and it contains bad code that returns
reference to a local object.
This is tested by building the master tree and running the framework
testsuite. No error was found in testsuite.
BUG=1737538
Automated import of CL 143430
Diffstat (limited to 'media/libdrm')
-rw-r--r-- | media/libdrm/mobile2/include/rights/RoManager.h | 6 | ||||
-rw-r--r-- | media/libdrm/mobile2/src/rights/RoManager.cpp | 6 |
2 files changed, 0 insertions, 12 deletions
diff --git a/media/libdrm/mobile2/include/rights/RoManager.h b/media/libdrm/mobile2/include/rights/RoManager.h index cf398b3..71e9eef 100644 --- a/media/libdrm/mobile2/include/rights/RoManager.h +++ b/media/libdrm/mobile2/include/rights/RoManager.h @@ -64,12 +64,6 @@ public: vector<Ro*> getAllRo(); /** - * Get the private key of the device. - * @return the private key. - */ - const string& getDevicePrivateKey() const; - - /** * Get ro which contained rights of specific content. * @param contentID the specific id of content. * @return NULL if not fount otherwise the related ro. diff --git a/media/libdrm/mobile2/src/rights/RoManager.cpp b/media/libdrm/mobile2/src/rights/RoManager.cpp index 848c2ba..a115d21 100644 --- a/media/libdrm/mobile2/src/rights/RoManager.cpp +++ b/media/libdrm/mobile2/src/rights/RoManager.cpp @@ -121,9 +121,3 @@ bool RoManager::checkRoInCache(const string& roID) return true; } -/** see RoManager.h */ -const string& RoManager::getDevicePrivateKey() const -{ - string pk; - return pk; -} |