Merge "vold: remove unused stop() methods"
This commit is contained in:
commit
d70e2b4ea9
6 changed files with 0 additions and 33 deletions
|
@ -33,10 +33,6 @@ int NetlinkHandler::start() {
|
|||
return this->startListener();
|
||||
}
|
||||
|
||||
int NetlinkHandler::stop() {
|
||||
return this->stopListener();
|
||||
}
|
||||
|
||||
void NetlinkHandler::onEvent(NetlinkEvent* evt) {
|
||||
VolumeManager* vm = VolumeManager::Instance();
|
||||
const char* subsys = evt->getSubsystem();
|
||||
|
|
|
@ -25,7 +25,6 @@ class NetlinkHandler : public NetlinkListener {
|
|||
virtual ~NetlinkHandler();
|
||||
|
||||
int start(void);
|
||||
int stop(void);
|
||||
|
||||
protected:
|
||||
virtual void onEvent(NetlinkEvent* evt);
|
||||
|
|
|
@ -90,19 +90,3 @@ out:
|
|||
close(mSock);
|
||||
return -1;
|
||||
}
|
||||
|
||||
int NetlinkManager::stop() {
|
||||
int status = 0;
|
||||
|
||||
if (mHandler->stop()) {
|
||||
PLOG(ERROR) << "Unable to stop NetlinkHandler";
|
||||
status = -1;
|
||||
}
|
||||
delete mHandler;
|
||||
mHandler = NULL;
|
||||
|
||||
close(mSock);
|
||||
mSock = -1;
|
||||
|
||||
return status;
|
||||
}
|
||||
|
|
|
@ -35,7 +35,6 @@ class NetlinkManager {
|
|||
virtual ~NetlinkManager();
|
||||
|
||||
int start();
|
||||
int stop();
|
||||
|
||||
void setBroadcaster(SocketListener* sl) { mBroadcaster = sl; }
|
||||
SocketListener* getBroadcaster() { return mBroadcaster; }
|
||||
|
|
|
@ -198,16 +198,6 @@ int VolumeManager::start() {
|
|||
return 0;
|
||||
}
|
||||
|
||||
int VolumeManager::stop() {
|
||||
CHECK(!mInternalEmulatedVolumes.empty());
|
||||
for (const auto& vol : mInternalEmulatedVolumes) {
|
||||
vol->destroy();
|
||||
}
|
||||
mInternalEmulatedVolumes.clear();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void VolumeManager::handleBlockEvent(NetlinkEvent* evt) {
|
||||
std::lock_guard<std::mutex> lock(mLock);
|
||||
|
||||
|
|
|
@ -56,7 +56,6 @@ class VolumeManager {
|
|||
android::sp<android::os::IVoldListener> getListener() const { return mListener; }
|
||||
|
||||
int start();
|
||||
int stop();
|
||||
|
||||
void handleBlockEvent(NetlinkEvent* evt);
|
||||
|
||||
|
|
Loading…
Reference in a new issue