mirror of
https://github.com/nicolargo/glances.git
synced 2026-04-17 12:30:11 -04:00
chore: remove 14 verified dead functions and methods
This commit is contained in:
@@ -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'
|
||||
|
||||
|
||||
@@ -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)."""
|
||||
|
||||
Reference in New Issue
Block a user