aboutsummaryrefslogtreecommitdiff
path: root/libinit
diff options
context:
space:
mode:
authorAhmad Rulim <personal@rulim34.dev>2022-12-30 19:16:52 +0700
committersinanmohd <pcmsinan@gmail.com>2023-01-05 22:04:15 +0530
commit14b1b6b62572c3700f06b4fa490296b2c4e22cce (patch)
tree53585c9051128987ac4af163cc8d4bbff4d23ee2 /libinit
parentdb7df05265783d223fe8c5a5716ea75682230bb6 (diff)
veux: Remove unused common init file
Signed-off-by: Ahmad Rulim <personal@rulim34.dev>
Diffstat (limited to 'libinit')
-rw-r--r--libinit/Android.bp12
-rw-r--r--libinit/init_xiaomi_holi.cpp13
-rw-r--r--libinit/init_xiaomi_veux.cpp2
-rw-r--r--libinit/libinit_dalvik_heap.cpp2
-rw-r--r--libinit/libinit_variant.cpp3
5 files changed, 5 insertions, 27 deletions
diff --git a/libinit/Android.bp b/libinit/Android.bp
index d3ed028..480a05a 100644
--- a/libinit/Android.bp
+++ b/libinit/Android.bp
@@ -7,13 +7,13 @@
cc_library_static {
name: "init_xiaomi_veux",
srcs: ["init_xiaomi_veux.cpp"],
- whole_static_libs: ["//device/xiaomi/veux:libinit_xiaomi_holi"],
+ whole_static_libs: ["libinit_xiaomi_veux"],
include_dirs: ["system/core/init"],
recovery_available: true,
}
cc_library_static {
- name: "libinit_xiaomi_holi",
+ name: "libinit_xiaomi_veux",
srcs: [
"libinit_dalvik_heap.cpp",
"libinit_variant.cpp",
@@ -23,11 +23,3 @@ cc_library_static {
export_include_dirs: ["include"],
recovery_available: true,
}
-
-cc_library_static {
- name: "init_xiaomi_holi",
- srcs: ["init_xiaomi_holi.cpp"],
- whole_static_libs: ["libinit_xiaomi_holi"],
- include_dirs: ["system/core/init"],
- recovery_available: true,
-} \ No newline at end of file
diff --git a/libinit/init_xiaomi_holi.cpp b/libinit/init_xiaomi_holi.cpp
deleted file mode 100644
index 22cb31e..0000000
--- a/libinit/init_xiaomi_holi.cpp
+++ /dev/null
@@ -1,13 +0,0 @@
-/*
- * Copyright (C) 2022 The LineageOS Project
- *
- * SPDX-License-Identifier: Apache-2.0
- */
-
-#include <libinit_dalvik_heap.h>
-
-#include "vendor_init.h"
-
-void vendor_load_properties() {
- set_dalvik_heap();
-}
diff --git a/libinit/init_xiaomi_veux.cpp b/libinit/init_xiaomi_veux.cpp
index cc9e2e5..5f25d57 100644
--- a/libinit/init_xiaomi_veux.cpp
+++ b/libinit/init_xiaomi_veux.cpp
@@ -127,4 +127,4 @@ static const std::vector<variant_info_t> variants = {
void vendor_load_properties() {
search_variant(variants);
set_dalvik_heap();
-} \ No newline at end of file
+}
diff --git a/libinit/libinit_dalvik_heap.cpp b/libinit/libinit_dalvik_heap.cpp
index b3b24ba..4eb4748 100644
--- a/libinit/libinit_dalvik_heap.cpp
+++ b/libinit/libinit_dalvik_heap.cpp
@@ -5,8 +5,8 @@
*/
#include <sys/sysinfo.h>
-#include <libinit_utils.h>
+#include <libinit_utils.h>
#include <libinit_dalvik_heap.h>
#define HEAPSTARTSIZE_PROP "dalvik.vm.heapstartsize"
diff --git a/libinit/libinit_variant.cpp b/libinit/libinit_variant.cpp
index 99babbf..2c693c5 100644
--- a/libinit/libinit_variant.cpp
+++ b/libinit/libinit_variant.cpp
@@ -6,13 +6,12 @@
#include <android-base/logging.h>
#include <android-base/properties.h>
-#include <libinit_utils.h>
+#include <libinit_utils.h>
#include <libinit_variant.h>
using android::base::GetProperty;
-
#define HWC_PROP "ro.boot.hwc"
#define MODEL_PROP "ro.boot.board_id"
#define SKU_PROP "ro.boot.product.hardware.sku"