yy782 opened a new pull request, #70958: URL: https://github.com/apache/doris/pull/70958
### 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 `@Deprecated` or 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 - **Change map:** 856 changed lines across 20 files: 5+/313- production code. - **Moves vs. logic changes:** No moves. All edits are deletions of unreferenced declarations, definitions, fields, imports, and whole disabled files. - **Behavior change:** None intended. - **Compatibility:** None changed. - **Performance impact:** None expected. Only unreachable code and unused state are removed. - **Rollback:** A plain revert is safe; nothing persisted or sent between processes is affected. ### Testing Repository-wide static reference searches (`search_content` and `grep`) for each removed symbol returned zero references or only unrelated same-named symbols. `clang-format --dry-run --Werror --style=file` on all touched C++ files passed after realigning the remaining enum comments. `build-support/check-build-hygiene.sh` passed. 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](https://github.com/apache/doris/blob/master/cloud/test/sync_point_test.cpp) and [fe/fe-core/src/test/java/org/apache/doris/common/parquet/ParquetReaderTest.java](https://github.com/apache/doris/blob/master/fe/fe-core/src/test/java/org/apache/doris/common/parquet/ParquetReaderTest.java) should be deleted. ### Release note None. ### Check List (For Author) - Behavior changed: No - Does this need documentation: No - Pre-submission status: Partially verified: static reference, formatting, and header-hygiene checks done; local build succeeded ### AI Disclosure - Tool: DeepSeek-V4 Pro - Generated: the code deletions, this description, and the supporting static searches - Human review: Reviewed by the author -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
