From 91b1993f7e422471a83fa912513e412c1ba2d903 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Sat, 2 Apr 2022 15:56:48 +0200 Subject: [PATCH] mx_proc: Remove unused code --- mx_proc.c | 17 ----------------- mx_proc.h | 1 - 2 files changed, 18 deletions(-) diff --git a/mx_proc.c b/mx_proc.c index 67ecb2e2..809a6d55 100644 --- a/mx_proc.c +++ b/mx_proc.c @@ -99,23 +99,6 @@ int mx_proc_pid_stat(struct mx_proc_pid_stat **pps, pid_t pid) return 0; } -int mx_proc_pid_task_tid_stat(struct mx_proc_pid_stat **pps, pid_t pid, pid_t tid) -{ - struct mx_proc_pid_stat *pstat; - int res; - - pstat = *pps; - if (!pstat) - pstat = mx_calloc_forever(1, sizeof(*pstat)); - - res = mx_proc_pid_stat_read(pstat, "/proc/%d/task/%d/stat", pid, tid); - if (res < 0) - return res; - - *pps = pstat; - return 0; -} - int mx_proc_pid_stat_read(struct mx_proc_pid_stat *pps, char *fmt, ...) { _mx_cleanup_free_ char *fname = NULL; diff --git a/mx_proc.h b/mx_proc.h index 7e4cede6..6ae184a8 100644 --- a/mx_proc.h +++ b/mx_proc.h @@ -74,7 +74,6 @@ struct mx_proc_pid_stat { int mx_proc_pid_stat_read(struct mx_proc_pid_stat *pps, char *fmt, ...); int mx_proc_pid_stat(struct mx_proc_pid_stat **pps, pid_t pid); -int mx_proc_pid_task_tid_stat(struct mx_proc_pid_stat **pps, pid_t pid, pid_t tid); void mx_proc_pid_stat_free_content(struct mx_proc_pid_stat *pps);