aboutsummaryrefslogtreecommitdiff
path: root/src/ui/mapper/style/FontStylerMapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/mapper/style/FontStylerMapper.cpp')
-rw-r--r--src/ui/mapper/style/FontStylerMapper.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/ui/mapper/style/FontStylerMapper.cpp b/src/ui/mapper/style/FontStylerMapper.cpp
deleted file mode 100644
index ac8051a3..00000000
--- a/src/ui/mapper/style/FontStylerMapper.cpp
+++ /dev/null
@@ -1,25 +0,0 @@
-#include "cru/ui/mapper/style/FontStylerMapper.h"
-#include "cru/base/ClonePtr.h"
-#include "cru/ui/mapper/MapperRegistry.h"
-
-namespace cru::ui::mapper::style {
-FontStylerMapper::FontStylerMapper() { SetAllowedTags({"FontStyler"}); }
-
-FontStylerMapper::~FontStylerMapper() {}
-
-ClonePtr<ui::style::FontStyler> FontStylerMapper::DoMapFromXml(
- xml::XmlElementNode* node) {
- auto font_mapper = MapperRegistry::GetInstance()
- ->GetSharedPtrMapper<platform::graphics::IFont>();
-
- std::shared_ptr<platform::graphics::IFont> font;
-
- for (auto child_node : node->GetChildren()) {
- if (child_node->IsElementNode()) {
- font = font_mapper->MapFromXml(child_node->AsElement());
- }
- }
-
- return ui::style::FontStyler::Create(std::move(font));
-}
-} // namespace cru::ui::mapper::style