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:
1 parent
4d16f21541
commit
4c569cb1e5
60 files changed
+605
-1021
No files matched your search
@@ -12,8 +12,6 @@ namespace anm2ed::util::math
|
||||
constexpr auto FLOAT_FORMAT_EPSILON = 1e-7f;
|
||||
constexpr float FLOAT_FORMAT_POW10[] = {1.f, 10.f, 100.f, 1000.f, 10000.f, 100000.f, 1000000.f, 10000000.f};
|
||||
|
||||
float round_nearest_multiple(float value, float multiple) { return (roundf((value) / (multiple)) * (multiple)); }
|
||||
|
||||
int float_decimals_needed(float value)
|
||||
{
|
||||
for (int decimalCount = 0; decimalCount <= FLOAT_FORMAT_MAX_DECIMALS; ++decimalCount)
|
||||
|
||||
Reference in new issue
Block a user