|
2 | 2 | import inspect |
3 | 3 | import sys |
4 | 4 | from collections import Counter |
5 | | -from functools import cached_property |
6 | 5 | from pathlib import Path |
7 | 6 | from tempfile import NamedTemporaryFile |
8 | 7 | from types import ModuleType |
|
13 | 12 | from ...default_profiles.profile import GreeterType, Profile |
14 | 13 | from ..hardware import GfxDriver |
15 | 14 | from ..models.profile import ProfileConfiguration |
16 | | -from ..networking import fetch_data_from_url, list_interfaces |
| 15 | +from ..networking import fetch_data_from_url |
17 | 16 | from ..output import debug, error, info |
18 | 17 |
|
19 | 18 | if TYPE_CHECKING: |
@@ -141,10 +140,6 @@ def profiles(self) -> list[Profile]: |
141 | 140 | self._profiles = self._profiles or self._find_available_profiles() |
142 | 141 | return self._profiles |
143 | 142 |
|
144 | | - @cached_property |
145 | | - def _local_mac_addresses(self) -> list[str]: |
146 | | - return list(list_interfaces()) |
147 | | - |
148 | 143 | def add_custom_profiles(self, profiles: Profile | list[Profile]) -> None: |
149 | 144 | if not isinstance(profiles, list): |
150 | 145 | profiles = [profiles] |
@@ -176,10 +171,6 @@ def get_desktop_profiles(self) -> list[Profile]: |
176 | 171 | def get_custom_profiles(self) -> list[Profile]: |
177 | 172 | return [p for p in self.profiles if p.is_custom_type_profile()] |
178 | 173 |
|
179 | | - def get_mac_addr_profiles(self) -> list[Profile]: |
180 | | - tailored = [p for p in self.profiles if p.is_tailored()] |
181 | | - return [t for t in tailored if t.name in self._local_mac_addresses] |
182 | | - |
183 | 174 | def install_greeter(self, install_session: 'Installer', greeter: GreeterType) -> None: |
184 | 175 | packages = [] |
185 | 176 | service = None |
|
0 commit comments