Skip to content

Commit

Permalink
mx_proc: Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
donald committed Apr 2, 2022
1 parent 2e6a295 commit 91b1993
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
17 changes: 0 additions & 17 deletions mx_proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion mx_proc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 91b1993

Please sign in to comment.