-
Notifications
You must be signed in to change notification settings - Fork 83
refactor(clp-s): Delete unused clp_s::StringUtils functions; Remove unused Utils.hpp includes.
#1269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(clp-s): Delete unused clp_s::StringUtils functions; Remove unused Utils.hpp includes.
#1269
Conversation
WalkthroughThis change removes three StringUtils helpers from Utils.hpp/Utils.cpp, deletes their implementation, removes redundant Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: ASSERTIVE Plan: Pro 📒 Files selected for processing (2)
💤 Files with no reviewable changes (1)
🧰 Additional context used📓 Path-based instructions (1)**/*.{cpp,hpp,java,js,jsx,tpp,ts,tsx}⚙️ CodeRabbit configuration file
Files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (12)
🔇 Additional comments (1)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
💡 Knowledge Base configuration:
- MCP integration is disabled by default for public repositories
- Jira integration is disabled by default for public repositories
- Linear integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (10)
components/core/src/clp_s/ArchiveReader.hpp(0 hunks)components/core/src/clp_s/DictionaryEntry.cpp(0 hunks)components/core/src/clp_s/DictionaryReader.hpp(0 hunks)components/core/src/clp_s/JsonParser.hpp(0 hunks)components/core/src/clp_s/Schema.hpp(0 hunks)components/core/src/clp_s/TimestampDictionaryWriter.cpp(0 hunks)components/core/src/clp_s/Utils.cpp(0 hunks)components/core/src/clp_s/Utils.hpp(0 hunks)components/core/src/clp_s/clp-s.cpp(0 hunks)components/core/src/clp_s/search/QueryRunner.cpp(1 hunks)
💤 Files with no reviewable changes (9)
- components/core/src/clp_s/DictionaryEntry.cpp
- components/core/src/clp_s/ArchiveReader.hpp
- components/core/src/clp_s/JsonParser.hpp
- components/core/src/clp_s/TimestampDictionaryWriter.cpp
- components/core/src/clp_s/clp-s.cpp
- components/core/src/clp_s/Schema.hpp
- components/core/src/clp_s/DictionaryReader.hpp
- components/core/src/clp_s/Utils.cpp
- components/core/src/clp_s/Utils.hpp
🧰 Additional context used
📓 Path-based instructions (1)
**/*.{cpp,hpp,java,js,jsx,tpp,ts,tsx}
⚙️ CodeRabbit configuration file
- Prefer
false == <expression>rather than!<expression>.
Files:
components/core/src/clp_s/search/QueryRunner.cpp
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (8)
- GitHub Check: centos-stream-9-dynamic-linked-bins
- GitHub Check: centos-stream-9-static-linked-bins
- GitHub Check: ubuntu-jammy-dynamic-linked-bins
- GitHub Check: ubuntu-jammy-static-linked-bins
- GitHub Check: ubuntu-jammy-lint
- GitHub Check: build-macos (macos-15, false)
- GitHub Check: build-macos (macos-15, true)
- GitHub Check: lint-check (macos-15)
Bill-hbrhbr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm thinking maybe you can move the leftover clp-s specific string utils to the string_utils module, so that I can move it to ystdlib in the near future.
Sure, that's a good idea for a follow-up PR after this one. |
Bill-hbrhbr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
kirkrodrigues
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deferring to @Bill-hbrhbr's review.
For the PR title, how about:
refactor(clp-s): Delete unused `clp_s::StringUtils` functions; Remove unused `Utils.hpp` includes.
clp_s::StringUtils methods; Remove unused includes of Utils.hpp.clp_s::StringUtils functions; Remove unused Utils.hpp includes.
Description
This PR follows up on #1163 and #1103 by deleting the remainder of the
StringUtilsmethods that have equivalent implementations in clp; it is now safe to remove the rest of these copied methods since we now use the core clp parsing and search code directly in clp-s. We also clean up unused references to clp-s'Utils.hppheader (most of these remaining references were previously used in order to include the now-deleted methods).Checklist
breaking change.
Validation performed
Summary by CodeRabbit
New Features
Refactor
Chores
Notes