Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d94755bf authored by Doug Kwan's avatar Doug Kwan Committed by The Android Open Source Project
Browse files

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
parent d2e72d97
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -63,12 +63,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.
+0 −6
Original line number Diff line number Diff line
@@ -121,9 +121,3 @@ bool RoManager::checkRoInCache(const string& roID)
    return true;
}
/** see RoManager.h */
const string& RoManager::getDevicePrivateKey() const
{
    string pk;
    return pk;
}