Merge "vold: remove unused stop() methods" am: d70e2b4ea9

Original change: https://android-review.googlesource.com/c/platform/system/vold/+/1434595

Change-Id: Ifb529e76791d98c76c549bfb93c5abcf4096e685
This commit is contained in:
Treehugger Robot 2020-09-24 16:25:43 +00:00 committed by Automerger Merge Worker
commit 27a747b8ab
6 changed files with 0 additions and 33 deletions

View file

@ -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();

View file

@ -25,7 +25,6 @@ class NetlinkHandler : public NetlinkListener {
virtual ~NetlinkHandler();
int start(void);
int stop(void);
protected:
virtual void onEvent(NetlinkEvent* evt);

View file

@ -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;
}

View file

@ -35,7 +35,6 @@ class NetlinkManager {
virtual ~NetlinkManager();
int start();
int stop();
void setBroadcaster(SocketListener* sl) { mBroadcaster = sl; }
SocketListener* getBroadcaster() { return mBroadcaster; }

View file

@ -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);

View file

@ -56,7 +56,6 @@ class VolumeManager {
android::sp<android::os::IVoldListener> getListener() const { return mListener; }
int start();
int stop();
void handleBlockEvent(NetlinkEvent* evt);