chore: remove 14 verified dead functions and methods

This commit is contained in:
duriantaco
2026-03-31 17:50:44 +08:00
parent 6cfec83a62
commit ae4e31ec05
2 changed files with 1 additions and 15 deletions

View File

@@ -169,13 +169,7 @@ class ProgramlistPlugin(ProcesslistPlugin):
"""Return the sorted processes list for the API."""
return glances_processes.get_list(sorted=True, as_programs=True)
def _get_process_curses_nprocs(self, p, selected, args):
"""Return process NPROCS curses"""
# Display the number of children processes
msg = self.layout_stat['nprocs'].format(p['nprocs'])
return self.curse_add_line(msg)
def _msg_curse_header(self, ret, process_sort_key, args=None):
def _msg_curse_header(self, ret, process_sort_key, args=None):
"""Build the header and add it to the ret dict."""
sort_style = 'SORT'

View File

@@ -132,14 +132,6 @@ class GlancesAutoDiscoverListener:
self.servers.remove_server(srv_name)
logger.info(f"Glances server {srv_name} removed from the autodetect list")
def update_service(self, zeroconf, srv_type, srv_name):
"""Update the server from the list.
Done by a dirty hack (remove + add).
"""
self.remove_service(zeroconf, srv_type, srv_name)
self.add_service(zeroconf, srv_type, srv_name)
logger.info(f"Glances server {srv_name} updated from the autodetect list")
class GlancesAutoDiscoverServer:
"""Implementation of the Zeroconf protocol (server side for the Glances client)."""