Skip to content

Shared: Remove deprecated code#21748

Merged
hvitved merged 4 commits intogithub:mainfrom
hvitved:shared/remove-deprecated
Apr 23, 2026
Merged

Shared: Remove deprecated code#21748
hvitved merged 4 commits intogithub:mainfrom
hvitved:shared/remove-deprecated

Conversation

@hvitved
Copy link
Copy Markdown
Contributor

@hvitved hvitved commented Apr 23, 2026

No description provided.

@hvitved hvitved changed the title wShared: Remove deprecated code Shared: Remove deprecated code Apr 23, 2026
@hvitved
Copy link
Copy Markdown
Contributor Author

hvitved commented Apr 23, 2026

Rerun has been triggered: 3 restarted 🚀

@hvitved hvitved added the no-change-note-required This PR does not need a change note label Apr 23, 2026
@hvitved hvitved marked this pull request as ready for review April 23, 2026 12:04
Copilot AI review requested due to automatic review settings April 23, 2026 12:04
@hvitved hvitved requested review from a team as code owners April 23, 2026 12:04
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes a set of deprecated SSA, dataflow, and control-flow compatibility APIs across shared and language-specific libraries (Swift/Ruby/C#), continuing the cleanup of legacy predicates/classes in the CodeQL standard libraries.

Changes:

  • Removed deprecated SSA helper predicates/types (including old “last read/last ref” helpers and legacy SSA-reaching modules/aliases).
  • Removed deprecated hasLocationInfo forwarding predicates from shared dataflow node wrappers, and removed deprecated source/sink grouping APIs.
  • Removed deprecated control-flow tree child-accessor helpers.
Show a summary per file
File Description
swift/ql/lib/codeql/swift/dataflow/Ssa.qll Removes deprecated SSA predicate wrapper.
shared/ssa/codeql/ssa/Ssa.qll Deletes large block of deprecated SSA reachability APIs; consolidates on the non-deprecated module/types.
shared/dataflow/codeql/dataflow/internal/DataFlowImplStage1.qll Removes deprecated hasLocationInfo forwarding predicate.
shared/dataflow/codeql/dataflow/internal/DataFlowImplCommon.qll Removes deprecated FlowStateString helper module.
shared/dataflow/codeql/dataflow/internal/DataFlowImpl.qll Removes deprecated hasLocationInfo forwarding and deprecated source/sink grouping predicates.
shared/dataflow/codeql/dataflow/DataFlow.qll Removes deprecated hasLocationInfo forwarding predicates from public DataFlow node types.
shared/controlflow/codeql/controlflow/Cfg.qll Removes deprecated child accessor helpers on control-flow tree nodes.
ruby/ql/lib/codeql/ruby/dataflow/internal/SsaImpl.qll Removes deprecated “last read” implementation helpers.
ruby/ql/lib/codeql/ruby/dataflow/SSA.qll Removes deprecated getALastRead API.
csharp/ql/lib/semmle/code/csharp/dataflow/internal/SsaImpl.qll Removes deprecated “last read” implementation helpers.
csharp/ql/lib/semmle/code/csharp/dataflow/SSA.qll Removes deprecated getALastRead / getALastReadAtNode APIs.

Copilot's findings

  • Files reviewed: 11/11 changed files
  • Comments generated: 0

Copy link
Copy Markdown
Contributor

@michaelnebel michaelnebel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Copy Markdown
Contributor

@aschackmull aschackmull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent, go go merge. 🚀 (LGTM)

@hvitved hvitved merged commit c64223a into github:main Apr 23, 2026
147 of 148 checks passed
@hvitved hvitved deleted the shared/remove-deprecated branch April 23, 2026 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants