summaryrefslogtreecommitdiffstats
path: root/media/libdrm
diff options
context:
space:
mode:
authorDoug Kwan <>2009-03-28 21:53:49 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-28 21:53:49 -0700
commitd94755bf33193f50b1a63778788e82b5257f22c2 (patch)
tree54b8520f3397f00e4c735964f1b6c848abc99884 /media/libdrm
parentd2e72d97c197ca198089ef48194620cb8cdcbe0d (diff)
downloadframeworks_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.h6
-rw-r--r--media/libdrm/mobile2/src/rights/RoManager.cpp6
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;
-}