Cut shell/capture comment bloat ~33% (comments only, zero code change)

This commit is contained in:
2026-07-29 20:48:59 -04:00
parent 1f24c4b095
commit 54f5f24506
22 changed files with 699 additions and 1215 deletions
+9 -11
View File
@@ -1,16 +1,14 @@
#pragma once
// item_read — the ONE place a MediaItem* is read for its canonical GUID string and for
// the durable P_LANENAME of the fixed lane it sits on. Before this seam, view.cpp and
// bank_panel.cpp each carried a near-identical private itemGuid / itemLaneName pair
// (both files' comments acknowledged the deliberate copy); the D2 Wave-3-B item actions
// need the same two reads, so the duplication is extracted here — the item-read analog
// of track_guid's single MediaTrack* -> GUID-key formatter.
// The one place a MediaItem* is read for its canonical GUID string and for the
// durable P_LANENAME of the fixed lane it sits on — the item-read analog of
// track_guid's single MediaTrack* -> GUID-key formatter. Extracted from
// near-identical private itemGuid/itemLaneName pairs previously duplicated in
// view.cpp and bank_panel.cpp.
//
// REAPER-facing shell: the .cpp includes reaper_plugin_functions.h WITHOUT
// REAPERAPI_IMPLEMENT (main.cpp owns the API pointers; here they are extern —
// CLAUDE.md §contract). MediaItem / MediaTrack are forward-declared so this header
// stays SDK-lite. These are shell reads (REAPER string/value getters); the managed/
// manual DECISION that consumes the lane name stays pure in lane_keys (isOnManualLane).
// The .cpp includes reaper_plugin_functions.h WITHOUT REAPERAPI_IMPLEMENT
// (main.cpp owns the API pointers). MediaItem/MediaTrack are forward-declared so
// this header stays SDK-lite. These are shell reads; the managed/manual decision
// that consumes the lane name stays pure in lane_keys (isOnManualLane).
#include <string>