diff options
author | Maxime Schmitt <maxime.schmitt91@gmail.com> | 2024-02-23 14:43:22 +0100 |
---|---|---|
committer | Maxime Schmitt <maxime.schmitt91@gmail.com> | 2024-02-23 14:43:22 +0100 |
commit | e86438be4b859af55400a8d0d9c82ac1ff2d7794 (patch) | |
tree | 5b19e6a2c44d8f94f1de97089bf0b4f6b4acb283 | |
parent | 05122d38272259ee7f49771499e4074c4b40da25 (diff) |
Remove unnecessary code for Mac
-rw-r--r-- | src/extract_processinfo_mac.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/src/extract_processinfo_mac.c b/src/extract_processinfo_mac.c index 0ec38ad..e12e9ad 100644 --- a/src/extract_processinfo_mac.c +++ b/src/extract_processinfo_mac.c @@ -20,17 +20,6 @@ #include "nvtop/extract_processinfo_fdinfo.h" -struct callback_entry { - struct gpu_info *gpu_info; - processinfo_fdinfo_callback callback; - bool active; -}; - -static unsigned registered_callback_entries; -static struct callback_entry *callback_entries; - - - void processinfo_drop_callback(const struct gpu_info *info) { (void) info; } @@ -44,9 +33,6 @@ void processinfo_sweep_fdinfos(void) { } void processinfo_enable_disable_callback_for(const struct gpu_info *info, bool enable) { - for (unsigned index = 0; index < registered_callback_entries; ++index) { - if (callback_entries[index].gpu_info == info) { - callback_entries[index].active = enable; - } - } + (void)info; + (void)enable; } |