mirror of
https://github.com/vicliu624/trail-mate.git
synced 2026-08-28 13:34:07 +00:00
Retire historical app source descriptors
This commit is contained in:
@@ -40,17 +40,12 @@ const char* LinuxSimAppShell::activeUxPackId() const
|
||||
|
||||
bool LinuxSimAppShell::validate() const
|
||||
{
|
||||
const auto& historical_source = linuxSimHistoricalSourceDescriptor();
|
||||
return config_.target_id != nullptr &&
|
||||
targetProfile() != nullptr &&
|
||||
product_composition::findTargetUxBinding(targetId()) != nullptr &&
|
||||
config_.ux_pack_id != nullptr &&
|
||||
std::strcmp(config_.ux_pack_id, activeUxPackId()) == 0 &&
|
||||
ui_lvgl_ux::findUxPackById(activeUxPackId()) != nullptr &&
|
||||
config_.historical_source != nullptr &&
|
||||
historical_source.historical_root_name != nullptr &&
|
||||
historical_source.historical_role != nullptr &&
|
||||
historical_source.replacement_owner != nullptr;
|
||||
ui_lvgl_ux::findUxPackById(activeUxPackId()) != nullptr;
|
||||
}
|
||||
|
||||
} // namespace linux_sim_shell
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include "linux_sim_historical_source_descriptor.h"
|
||||
|
||||
#include "product_composition/target_profile.h"
|
||||
|
||||
namespace trailmate
|
||||
@@ -15,8 +13,6 @@ struct LinuxSimAppShellConfig
|
||||
{
|
||||
const char* target_id = "linux_sim";
|
||||
const char* ux_pack_id = "simulator_full";
|
||||
const char* historical_source =
|
||||
linuxSimHistoricalSourceDescriptor().historical_root_name;
|
||||
};
|
||||
|
||||
class LinuxSimAppShell
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
#include "linux_sim_historical_source_descriptor.h"
|
||||
|
||||
namespace trailmate::apps::linux_sim_shell
|
||||
{
|
||||
|
||||
const LinuxSimHistoricalSourceDescriptor& linuxSimHistoricalSourceDescriptor()
|
||||
{
|
||||
static const LinuxSimHistoricalSourceDescriptor descriptor{};
|
||||
return descriptor;
|
||||
}
|
||||
|
||||
} // namespace trailmate::apps::linux_sim_shell
|
||||
@@ -1,15 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
namespace trailmate::apps::linux_sim_shell
|
||||
{
|
||||
|
||||
struct LinuxSimHistoricalSourceDescriptor
|
||||
{
|
||||
const char* historical_root_name = "removed root linux_sim";
|
||||
const char* historical_role = "pre-refactor Linux simulator implementation root";
|
||||
const char* replacement_owner = "apps/linux_sim_shell + modules/ui_ascii_runtime";
|
||||
};
|
||||
|
||||
const LinuxSimHistoricalSourceDescriptor& linuxSimHistoricalSourceDescriptor();
|
||||
|
||||
} // namespace trailmate::apps::linux_sim_shell
|
||||
Reference in New Issue
Block a user