[console] process: drop unused method
- From: Zander Brown <zbrown src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [console] process: drop unused method
- Date: Wed, 24 Aug 2022 11:12:54 +0000 (UTC)
commit 2924e61f7825b24e0f842aff0fee59f677a30755
Author: Zander Brown <zbrown gnome org>
Date: Wed Aug 24 00:00:51 2022 +0100
process: drop unused method
We don't ever actually use this, save a couple bytes and drop it
src/kgx-process.c | 18 ------------------
src/kgx-process.h | 1 -
2 files changed, 19 deletions(-)
---
diff --git a/src/kgx-process.c b/src/kgx-process.c
index c173388..afa3e4e 100644
--- a/src/kgx-process.c
+++ b/src/kgx-process.c
@@ -36,7 +36,6 @@
struct _KgxProcess {
GPid pid;
GPid parent;
- gint32 uid;
gint32 euid;
GStrv argv;
char *exec;
@@ -90,9 +89,7 @@ kgx_process_new (GPid pid)
glibtop_get_proc_uid (&info, pid);
self->parent = info.ppid;
- self->uid = info.uid;
self->euid = info.euid;
- self->exec = NULL;
return self;
}
@@ -113,21 +110,6 @@ kgx_process_get_pid (KgxProcess *self)
return self->pid;
}
-/**
- * kgx_process_get_uid:
- * @self: the #KgxProcess
- *
- * Returns: The user id of the process
- *
- * Stability: Private
- */
-inline gint32
-kgx_process_get_uid (KgxProcess *self)
-{
- g_return_val_if_fail (self != NULL, 0);
-
- return self->uid;
-}
/**
* kgx_process_get_is_root:
diff --git a/src/kgx-process.h b/src/kgx-process.h
index 9b7838b..d3df59d 100644
--- a/src/kgx-process.h
+++ b/src/kgx-process.h
@@ -32,7 +32,6 @@ typedef struct _KgxProcess KgxProcess;
GTree *kgx_process_get_list (void);
KgxProcess *kgx_process_new (GPid pid);
GPid kgx_process_get_pid (KgxProcess *self);
-gint32 kgx_process_get_uid (KgxProcess *self);
gboolean kgx_process_get_is_root (KgxProcess *self);
GPid kgx_process_get_parent (KgxProcess *self);
GStrv kgx_process_get_argv (KgxProcess *self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]