Skip to content

[CLEANUP] Remove stale duplicate of AnnotatedMSRun.h from source tree - #10685

Merged
timosachsenberg merged 1 commit into
developfrom
claude/serene-mendel-2ryhig
Oct 21, 2026
Merged

timosachsenberg merged 1 commit into
developfrom
claude/serene-mendel-2ryhig

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Description

Deletes src/openms/source/METADATA/AnnotatedMSRun.h. It is an outdated, unused copy of the real header src/openms/include/OpenMS/METADATA/AnnotatedMSRun.h.

The copy was added next to the real header in #7974 ("refactor: Store IDs outside of spectra"), probably left behind by that PR's "moved file out of kernel" step. It has never been part of the build:

  • It is not listed in src/openms/source/METADATA/sources.cmake, which lists only AnnotatedMSRun.cpp, or in any other CMake file.
  • Nothing includes it. Every include, including the one in AnnotatedMSRun.cpp, is #include <OpenMS/METADATA/AnnotatedMSRun.h>, which resolves to the include-directory header. There are no quoted "AnnotatedMSRun.h" includes, and no include path points into src/openms/source/.
  • It has drifted from the real header: git diff --no-index between the two shows the real header with about 150 more lines. Greps for API users therefore turn up outdated declarations in it.

No functional change.

Verification: with the file deleted, a full build of the default target finished cleanly: 2855/2855 steps, covering libOpenMS, the GUI, TOPP tools and all class tests. AnnotatedMSRun_test passes.

  • The local build used system packages (OPENMS_USE_VCPKG=OFF) instead of the vcpkg preset: Arrow 26, Qt 6.4, Boost 1.83, HiGHS 1.14.0.
  • opentims and Thermo RAW support were turned off.

Checklist

  • Make sure that you are listed in the AUTHORS file
  • I have commented my code, particularly in hard-to-understand areas (no code added)
  • New and existing unit tests pass locally with my changes (AnnotatedMSRun_test; full build of all class tests)
  • Updated or added python bindings for changed or new classes (no updates necessary)

Generated by Claude Code

Summary by CodeRabbit

  • Removed
    • Removed the AnnotatedMSRun public API and its associated access, modification, indexing, and iteration capabilities.
    • Applications or extensions that rely on this API may require updates to remain compatible.

src/openms/source/METADATA/AnnotatedMSRun.h was an outdated copy of
src/openms/include/OpenMS/METADATA/AnnotatedMSRun.h. It was added
alongside the real header in #7974 and never wired up: it is not listed
in any sources.cmake/CMakeLists.txt and nothing includes it (all
includes use <OpenMS/METADATA/AnnotatedMSRun.h>). Its declarations
have drifted from the real header, so it only misleads greps for API
users.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_011PDe2F8izmxEr4LzrXExtJ
@coderabbitai

coderabbitai Bot commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e9360baa-87f5-4afe-8c39-93cfd6468fd2
📥 Commits

Reviewing files that changed from the base of the PR and between b15249f and 53b1df0.

📒 Files selected for processing: 1
  • src/openms/source/METADATA/AnnotatedMSRun.h
💤 Files with no reviewable changes: 1
  • src/openms/source/METADATA/AnnotatedMSRun.h

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 2 remain after this review.

📝 Walkthrough

The pull request deletes the AnnotatedMSRun public header. This removes its class declaration and its interfaces for storing and accessing an MSExperiment, peptide identifications, and protein identifications, including paired iteration and indexed access.

Changes: AnnotatedMSRun removal

Layer / File(s) Summary
Remove the AnnotatedMSRun public API
src/openms/source/METADATA/AnnotatedMSRun.h
The header and its AnnotatedMSRun class declaration are deleted. The removed interface included accessors, setters, indexed access, and paired iterators.

Priority: ⬇️ Low

Change: Other

Merge Risk: ⚪ Minimal · up to 53b1d

The public header remains available, and no dependency on the removed duplicate was found. The change is ready to merge after normal checks.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: removing the stale duplicate AnnotatedMSRun.h from the source tree.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files.

✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

A rabbit found the header gone,
And nibbled clover till the dawn.
The paired iterators took their leave,
While moonlit carrots hid their sleeves.
Then off it hopped through fields of green.

Comment @coderabbitai help to get the list of available commands.

@timosachsenberg
timosachsenberg merged commit d7d9974 into develop Oct 21, 2026
14 checks passed
@timosachsenberg
timosachsenberg deleted the claude/serene-mendel-2ryhig branch October 21, 2026 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants