Retire historical app source descriptors

This commit is contained in:
liu weikai
2026-06-13 14:05:38 +08:00
parent a767eab168
commit 88a5bb0ccd
39 changed files with 165 additions and 465 deletions
@@ -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