Stage 10a: delete dead code, merge tiny files, unify duplicated concepts

- Dead code: util/map, util/unordered_map, unused vector/math/string/input
  helpers, Document getters, special-interpolation bake leftovers,
  triggers_sort, SnapshotStack::max_size_get, AudioStream capture API.
- Merges: util/xml, util/string, resource/strings.cpp inlined; constants
  into input.hpp; tooltip into layout; Recorder into render; onionskin,
  tools, welcome and frame properties are panel functions; timeline
  popups.cpp folded into timeline.cpp.
- util/origin.hpp replaced by model Origin (the merge setting stays a
  combo index, so saved preferences keep their meaning).
- Item type names/icons/colors moved from model/common.hpp to the
  timeline header; the model no longer includes icon/strings headers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shweetandClaude Opus 5.5 committed 2026-10-03 18:35:22 -04:00
1 parent 4d16f21541
commit 4c569cb1e5
60 files changed
+605 -1021

No files matched your search

+3 -19
View File
@@ -13,7 +13,6 @@
#include "math.hpp"
#include "path.hpp"
#include "time.hpp"
#include "util/xml.hpp"
using namespace tinyxml2;
using namespace anm2ed::util;
@@ -1337,7 +1336,9 @@ namespace anm2ed::model
{
XMLDocument document{};
document.InsertEndChild(element_write(document, node));
return xml::document_to_string(document);
XMLPrinter printer{};
document.Print(&printer);
return printer.CStr();
}
void node_hash(std::uint64_t& hash, const XmlNode& node)
@@ -1430,23 +1431,6 @@ namespace anm2ed::model
return hash;
}
bool is_special_interpolated_frames(const Model& model)
{
for (auto [index, animation] : model.animations_get())
{
bool isSpecial{};
animation_tracks_each(*animation,
[&](const Track& track)
{
for (const auto& frame : track.frames)
isSpecial |=
track.type != ItemType::TRIGGER && is_special_interpolation(frame.interpolation);
});
if (isSpecial) return true;
}
return false;
}
std::string frame_to_string(const Frame& frame, ItemType type)
{
return node_to_string(frame_write(Writer(CLIPBOARD_FLAGS), frame, type));