Remove unused code

This commit is contained in:
topjohnwu
2022-03-16 21:31:22 -07:00
parent e841aab9e7
commit e266a81167
3 changed files with 25 additions and 120 deletions

View File

@@ -5,7 +5,7 @@ using kv_pairs = std::vector<std::pair<std::string, std::string>>;
// For API 28 AVD, it uses legacy SAR setup that requires
// special hacks in magiskinit to work properly. We do not
// necessarily want this enabled in production builds.
#define ENABLE_AVD_HACK 1
#define ENABLE_AVD_HACK 0
struct BootConfig {
bool skip_initramfs;
@@ -22,20 +22,6 @@ struct BootConfig {
void print();
};
struct fstab_entry {
std::string dev;
std::string mnt_point;
std::string type;
std::string mnt_flags;
std::string fsmgr_flags;
fstab_entry() = default;
fstab_entry(const fstab_entry &) = delete;
fstab_entry(fstab_entry &&) = default;
fstab_entry &operator=(const fstab_entry&) = delete;
fstab_entry &operator=(fstab_entry&&) = default;
};
#define DEFAULT_DT_DIR "/proc/device-tree/firmware/android"
extern std::vector<std::string> mount_list;
@@ -64,6 +50,8 @@ public:
};
class MagiskInit : public BaseInit {
private:
void mount_rules_dir();
protected:
mmap_data self;
mmap_data magisk_cfg;
@@ -81,7 +69,6 @@ protected:
void patch_sepolicy(const char *file);
void hijack_sepolicy();
void setup_tmp(const char *path);
void mount_rules_dir(const char *dev_base, const char *mnt_base);
void patch_rw_root();
public:
using BaseInit::BaseInit;