From 409e660c89372fe780e2a78e260d7030364af3fe Mon Sep 17 00:00:00 2001 From: SangYoun Kwak Date: Mon, 9 Jan 2023 11:15:40 +0900 Subject: [PATCH] Remove unnecessary '#include "lowmem-handler.h"' In the files below, the "lowmem-handler.h" was included but its symbols were never used. src/common/procfs/procfs.c src/process/proc-priority.c src/resource-optimizer/memory/dedup.c src/resource-optimizer/memory/swap/swap.c src/resourced/init.c Thus, unnecessary includes were removed. Change-Id: I6bfa6bb31a27109a797a0857affa66c5a486c68c Signed-off-by: SangYoun Kwak --- src/common/procfs/procfs.c | 1 - src/process/proc-priority.c | 1 - src/resource-optimizer/memory/dedup.c | 1 - src/resource-optimizer/memory/swap/swap.c | 1 - src/resourced/init.c | 1 - 5 files changed, 5 deletions(-) diff --git a/src/common/procfs/procfs.c b/src/common/procfs/procfs.c index 4caead1..69c7b64 100644 --- a/src/common/procfs/procfs.c +++ b/src/common/procfs/procfs.c @@ -51,7 +51,6 @@ #include "swap-common.h" #include "smaps.h" #include "notifier.h" -#include "lowmem-handler.h" #define MEM_SWAP_RATIO 0.5 diff --git a/src/process/proc-priority.c b/src/process/proc-priority.c index ea62ad0..e296bc4 100644 --- a/src/process/proc-priority.c +++ b/src/process/proc-priority.c @@ -26,7 +26,6 @@ #include #include -#include "lowmem-handler.h" #include "cpu-cgroup.h" #include "config-parser.h" #include "const.h" diff --git a/src/resource-optimizer/memory/dedup.c b/src/resource-optimizer/memory/dedup.c index fba82c5..e337020 100644 --- a/src/resource-optimizer/memory/dedup.c +++ b/src/resource-optimizer/memory/dedup.c @@ -44,7 +44,6 @@ #include "module-data.h" #include "dedup-common.h" #include "config-parser.h" -#include "lowmem-handler.h" #include "notifier.h" #include "const.h" #include "file-helper.h" diff --git a/src/resource-optimizer/memory/swap/swap.c b/src/resource-optimizer/memory/swap/swap.c index e51c1c1..8380c6a 100644 --- a/src/resource-optimizer/memory/swap/swap.c +++ b/src/resource-optimizer/memory/swap/swap.c @@ -43,7 +43,6 @@ #include "dbus-handler.h" #include "swap-common.h" #include "config-parser.h" -#include "lowmem-handler.h" #include "notifier.h" #include "procfs.h" #include "cgroup.h" diff --git a/src/resourced/init.c b/src/resourced/init.c index 8d2fc82..3d962a7 100644 --- a/src/resourced/init.c +++ b/src/resourced/init.c @@ -40,7 +40,6 @@ #include "cpu-cgroup.h" #include "watchdog-cgroup.h" #include "fd-handler.h" -#include "lowmem-handler.h" #include "notifier.h" #include "cpu-common.h" -- 2.7.4