🚧 fix unused static function

This commit is contained in:
Vladislav Nepogodin 2022-02-21 03:30:03 +04:00
parent e74fce0976
commit 6d86b4a748
No known key found for this signature in database
GPG Key ID: B62C3D10C54D5DA9

View File

@ -31,8 +31,8 @@ static void install_ati() noexcept {
#endif
}
static void install_all_drivers() noexcept {
#ifdef NDEVENV
static void install_all_drivers() noexcept {
static constexpr auto packages = "xf86-input-libinput xf86-video-fbdev xf86-video-vesa xf86-video-amdgpu xf86-video-ati xf86-video-intel xf86-video-nouveau";
auto* config_instance = Config::instance();
@ -45,8 +45,8 @@ static void install_all_drivers() noexcept {
return;
}
detail::follow_process_log_widget({"/bin/sh", "-c", fmt::format(FMT_COMPILE("pacstrap -c {} {}"), mountpoint, packages)});
#endif
}
#endif
static void setup_graphics_card() noexcept {
std::string_view driver{};