lowmem: Remove unused function 19/291119/4
authorSangYoun Kwak <sy.kwak@samsung.com>
Mon, 10 Apr 2023 06:18:04 +0000 (15:18 +0900)
committerSangYoun Kwak <sy.kwak@samsung.com>
Tue, 11 Apr 2023 08:15:09 +0000 (17:15 +0900)
A function named 'is_dynamic_process_killer' is a static inline function
but it is not used anywhere.

Change-Id: I3a75011f3d49461b29c731fe326a2cac06b4878a
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
src/resource-limiter/memory/lowmem.c

index 9056dba..bab51ab 100644 (file)
@@ -422,11 +422,6 @@ static void lowmem_free_task_info_array(GArray *array)
        g_array_free(array, true);
 }
 
-static inline int is_dynamic_process_killer(int flags)
-{
-       return (flags & OOM_FORCE) && !(flags & OOM_NOMEMORY_CHECK);
-}
-
 static unsigned int is_memory_recovered(unsigned int *avail, unsigned int thres)
 {
        unsigned int available = proc_get_mem_available();