Remove unused _set_font code (#3243)
This code has been unused since commit dee792658.
This commit is contained in:
parent
0b0dc76558
commit
7f88e909c6
|
|
@ -7,8 +7,6 @@ from dataclasses import dataclass
|
|||
from pathlib import Path
|
||||
from typing import TYPE_CHECKING, Any, override
|
||||
|
||||
from .output import debug, error
|
||||
|
||||
if TYPE_CHECKING:
|
||||
_: Any
|
||||
|
||||
|
|
@ -84,17 +82,6 @@ class TranslationHandler:
|
|||
|
||||
return languages
|
||||
|
||||
def _set_font(self, font: str) -> None:
|
||||
"""
|
||||
Set the provided font as the new terminal font
|
||||
"""
|
||||
from .general import SysCommand
|
||||
try:
|
||||
debug(f'Setting font: {font}')
|
||||
SysCommand(f'setfont {font}')
|
||||
except Exception:
|
||||
error(f'Unable to set font {font}')
|
||||
|
||||
def _load_language_mappings(self) -> list[dict[str, str]]:
|
||||
"""
|
||||
Load the mapping table of all known languages
|
||||
|
|
|
|||
Loading…
Reference in New Issue