Skip to content

Commit 2236a74

Browse files
committed
Remove leftover code from unattended script
1 parent e5a14c0 commit 2236a74

File tree

4 files changed

+1
-56
lines changed

4 files changed

+1
-56
lines changed

archinstall/default_profiles/profile.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ class ProfileType(Enum):
2222
DesktopEnv = 'Desktop Environment'
2323
CustomType = 'CustomType'
2424
# special things
25-
Tailored = 'Tailored'
2625
Application = 'Application'
2726

2827

@@ -158,9 +157,6 @@ def is_desktop_type_profile(self) -> bool:
158157
def is_xorg_type_profile(self) -> bool:
159158
return self.profile_type == ProfileType.Xorg if self._advanced_check() else False
160159

161-
def is_tailored(self) -> bool:
162-
return self.profile_type == ProfileType.Tailored
163-
164160
def is_custom_type_profile(self) -> bool:
165161
return self.profile_type == ProfileType.CustomType
166162

archinstall/default_profiles/tailored.py

Lines changed: 0 additions & 22 deletions
This file was deleted.

archinstall/lib/profile/profiles_handler.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import inspect
33
import sys
44
from collections import Counter
5-
from functools import cached_property
65
from pathlib import Path
76
from tempfile import NamedTemporaryFile
87
from types import ModuleType
@@ -13,7 +12,7 @@
1312
from ...default_profiles.profile import GreeterType, Profile
1413
from ..hardware import GfxDriver
1514
from ..models.profile import ProfileConfiguration
16-
from ..networking import fetch_data_from_url, list_interfaces
15+
from ..networking import fetch_data_from_url
1716
from ..output import debug, error, info
1817

1918
if TYPE_CHECKING:
@@ -141,10 +140,6 @@ def profiles(self) -> list[Profile]:
141140
self._profiles = self._profiles or self._find_available_profiles()
142141
return self._profiles
143142

144-
@cached_property
145-
def _local_mac_addresses(self) -> list[str]:
146-
return list(list_interfaces())
147-
148143
def add_custom_profiles(self, profiles: Profile | list[Profile]) -> None:
149144
if not isinstance(profiles, list):
150145
profiles = [profiles]
@@ -176,10 +171,6 @@ def get_desktop_profiles(self) -> list[Profile]:
176171
def get_custom_profiles(self) -> list[Profile]:
177172
return [p for p in self.profiles if p.is_custom_type_profile()]
178173

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-
183174
def install_greeter(self, install_session: 'Installer', greeter: GreeterType) -> None:
184175
packages = []
185176
service = None

examples/mac_address_installation.py

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)