Repository navigation
Conversation
yy782
marked this pull request as ready for review
November 24, 2026 11:11
yy782
requested review from
924060929,
englefly,
gavinchou,
liaoxin01,
luwei16,
morrySnow,
starocean999 and
yiguolei
as code owners
November 24, 2026 11:11
Contributor
Author
|
build all |
yy782
force-pushed
the
refactor/remove-unused-code
branch
from
November 25, 2026 15:12
5d02274 to
3f4ae2f
Compare
Contributor
Author
|
Closing this PR. I'll switch to cleaning up unused code module by module, rather than sweeping across multiple modules. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
Doris carries code that became unreachable after earlier refactors and feature removals across its BE storage and execution helpers, FE planner and service classes, and test/tool directories. Several of these items were already marked
@Deprecatedor annotated as "not used any more", but were never removed. Some are write-only fields or private helpers whose only caller was a deprecated overload; others are disabled test files or an unregistered standalone program.What problem does this PR solve?
Issue Number: None
Related PR: None
PR Type: Refactor
Problem Summary:
Unused fields, methods, and disabled test code across BE, FE, and tools increase code volume, add compilation time, and raise maintenance cost. This change deletes code with proven zero in-repo references, to slim down the codebase, reduce compilation burden, and lower maintenance cost. No reachable behavior, interface, or format changes.
Details
Testing
Repository-wide static reference searches (
search_contentandgrep) for each removed symbol returned zero references or only unrelated same-named symbols.clang-format --dry-run --Werror --style=fileon all touched C++ files passed after realigning the remaining enum comments.build-support/check-build-hygiene.shpassed. Local builds of both the C++ side and the Java side succeeded.Notes for Reviewers
I am not sure whether cloud/test/sync_point_test.cpp and fe/fe-core/src/test/java/org/apache/doris/common/parquet/ParquetReaderTest.java should be deleted.
Release note
None.
Check List (For Author)
AI Disclosure