Skip to content

Conversation

vvysokikh1
Copy link
Collaborator

@vvysokikh1 vvysokikh1 commented Jul 17, 2025

High Level Overview of Change

After FlowCross amendment retirement (#5562), there was still some unused code left. After going deeper into that, found out we could remove Taker class completely, since it was never used anywhere outside of direct/bridged cross.

Context of Change

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactor (non-breaking change that only restructures code)
  • Performance (increase or change in throughput and/or latency)
  • Tests (you added tests for code that already exists, or your new feature included in this PR)
  • Documentation update
  • Chore (no impact to binary, e.g. .gitignore, formatting, dropping support for older tooling)
  • Release

API Impact

  • Public API: New feature (new methods and/or new fields)
  • Public API: Breaking change (in general, breaking changes should only impact the next api_version)
  • libxrpl change (any change that may affect libxrpl or dependents of libxrpl)
  • Peer protocol change (must be backward compatible or bump the peer protocol version)

Sandbox& sbCancel,
Amounts const& takerAmount,
std::optional<uint256> const& domainID)
{
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

According to the comment in CreateOffer.h, this function was temporary to invoke the different implementations of cross. Since we only have flow cross now, I'm removing this function and placing it's implementation directly where it was previously called.

@vvysokikh1 vvysokikh1 marked this pull request as ready for review July 17, 2025 09:59
@vvysokikh1 vvysokikh1 added Low Priority Removes unused code PR which would remove unused code. labels Jul 17, 2025
Copy link

codecov bot commented Jul 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.8%. Comparing base (faa781b) to head (fb2cbf7).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##           develop   #5575     +/-   ##
=========================================
+ Coverage     78.4%   78.8%   +0.4%     
=========================================
  Files          816     814      -2     
  Lines        71730   71164    -566     
  Branches      8600    8332    -268     
=========================================
- Hits         56234   56069    -165     
+ Misses       15496   15095    -401     
Files with missing lines Coverage Δ
src/xrpld/app/tx/detail/CreateOffer.cpp 92.0% <100.0%> (+24.4%) ⬆️
src/xrpld/app/tx/detail/CreateOffer.h 100.0% <100.0%> (ø)

... and 8 files with indirect coverage changes

Impacted file tree graph

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Bronek Bronek self-requested a review July 17, 2025 11:03
Copy link
Collaborator

@Bronek Bronek left a comment

Choose a reason for hiding this comment

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

Nice !

@vvysokikh1 vvysokikh1 added the Ready to merge *PR author* thinks it's ready to merge. Has passed code review. Perf sign-off may still be required. label Jul 23, 2025
@bthomee bthomee enabled auto-merge (squash) July 23, 2025 13:41
@bthomee bthomee merged commit 433eeab into develop Jul 23, 2025
27 checks passed
@bthomee bthomee deleted the vvysokikh1/remove_unused_code_after_flow_cross_retirement branch July 23, 2025 13:57
ximinez added a commit that referenced this pull request Jul 24, 2025
…to ximinez/lending-refactoring-3

* XRPLF/ximinez/lending-refactoring-2:
  refactor: Update rocksdb (#5568)
  Switch instrumentation workflow to use dependencies (#5607)
  chore: Rename conan profile to `default` (#5599)
  Include `network_id` in validations and subscription stream responses (#5579)
  Add support for `DomainID` in `MPTokenIssuance` transactions (#5509)
  chore: Remove unused code after flow cross retirement (#5575)
  Remove obsolete owner pays fee feature and XRPL_ABANDON stanza (#5550)
  refactor: Makes HashRouter flags more type-safe (#5371)
  Fix clang-format CI job (#5598)
This was referenced Aug 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Low Priority Ready to merge *PR author* thinks it's ready to merge. Has passed code review. Perf sign-off may still be required. Removes unused code PR which would remove unused code.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants