Skip to content

Cleanup DB dead code#5143

Merged
marta-lokhova merged 1 commit intostellar:masterfrom
marta-lokhova:dbDeadCode
Feb 19, 2026
Merged

Cleanup DB dead code#5143
marta-lokhova merged 1 commit intostellar:masterfrom
marta-lokhova:dbDeadCode

Conversation

@marta-lokhova
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings February 18, 2026 01:08
Copy link

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 dead database-related code that is no longer used in the codebase. The cleanup focuses on removing functions that were used to populate checkpoint files from the database, along with related ledger header utilities.

Changes:

  • Removed populateCheckpointFilesFromDB and related helper functions from TransactionSQL
  • Removed loadBySequence, loadMaxLedgerSeq, and copyToStream from LedgerHeaderUtils
  • Removed test code that tested the now-deleted copyToStream function

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/transactions/TransactionSQL.h Removed declaration of populateCheckpointFilesFromDB function
src/transactions/TransactionSQL.cpp Removed populateCheckpointFilesFromDB and helper functions (writeNonGeneralizedTxSetToStream, writeGeneralizedTxSetToStream, writeTxSetToStream, checkEncodedGeneralizedTxSetIsEmpty)
src/ledger/LedgerHeaderUtils.h Removed declarations of loadBySequence, loadMaxLedgerSeq, and copyToStream functions
src/ledger/LedgerHeaderUtils.cpp Removed implementations of loadBySequence, loadMaxLedgerSeq, and copyToStream functions
src/history/test/HistoryTests.cpp Removed test code calling the now-deleted copyToStream function

@marta-lokhova marta-lokhova force-pushed the dbDeadCode branch 3 times, most recently from fa9e94b to 40d4de6 Compare February 18, 2026 21:22
@marta-lokhova marta-lokhova added this pull request to the merge queue Feb 19, 2026
Merged via the queue into stellar:master with commit 07be739 Feb 19, 2026
51 checks passed
@marta-lokhova marta-lokhova deleted the dbDeadCode branch February 19, 2026 01:00
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.

3 participants

Comments