From 4f4f54a059827adb54905e3cd85c347ce0384fca Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Fri, 13 Dec 2019 08:31:24 -0500 Subject: [PATCH] Remove unused code --- native/jni/init/rootdir.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/native/jni/init/rootdir.cpp b/native/jni/init/rootdir.cpp index 8c7050f29..bc323e5ee 100644 --- a/native/jni/init/rootdir.cpp +++ b/native/jni/init/rootdir.cpp @@ -101,17 +101,8 @@ void RootFSInit::setup_rootfs() { munmap(addr, size); } - // Handle legacy overlays - int fd = open("/overlay", O_RDONLY | O_CLOEXEC); - if (fd >= 0) { - LOGD("Merge overlay folder\n"); - mv_dir(fd, root); - close(fd); - rmdir("/overlay"); - } - // Handle overlays - fd = open("/overlay.d", O_RDONLY | O_CLOEXEC); + int fd = open("/overlay.d", O_RDONLY | O_CLOEXEC); if (fd >= 0) { LOGD("Merge overlay.d\n"); load_overlay_rc(fd);