Skip to content
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

Cleanup of unused and superfluous code in src/vkutil.* #41

Merged
merged 8 commits into from
Jul 1, 2024

Conversation

bjosv
Copy link
Collaborator

@bjosv bjosv commented Jul 1, 2024

  • Remove unused code in src/vkutil.*
  • Remove macro NOT_REACHED().
  • Remove function vk_valid_port().
  • Remove own assert macro in cluster code.
    We have a mixed usage of own and standard assert. Lets use standard from <assert.h> only.

Signed-off-by: Björn Svensson <[email protected]>
Signed-off-by: Björn Svensson <[email protected]>
There are a mixed usage of own and standard assert,
lets use standard from <assert.h> only.

Signed-off-by: Björn Svensson <[email protected]>
Copy link
Collaborator

@zuiderkwast zuiderkwast left a comment

Choose a reason for hiding this comment

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

🥇

@zuiderkwast
Copy link
Collaborator

Failing jobs?

@bjosv
Copy link
Collaborator Author

bjosv commented Jul 1, 2024

Failing jobs?

Yes, seem to be some issue with windows that needs to be corrected. CentOS fails due to some install server

@zuiderkwast
Copy link
Collaborator

CentOS 7 is EOL. We should drop it. In Valkey we switched to some other old distro that we can use as the oldest supported system, some version of AlmaLinux IIRC.

Regarding clang-format, are we using a too old version (13)? In Valkey we use version 18 to make it understand our conventions and config file. Not sure if this is the problem.

@bjosv
Copy link
Collaborator Author

bjosv commented Jul 1, 2024

Yes, we should replace CentoOS 7 and run clang-tidy on everything, I has never passed in libvalkey after the merge.
Lets add issue on those two things

@bjosv
Copy link
Collaborator Author

bjosv commented Jul 1, 2024

Added #42 and #43

@bjosv bjosv merged commit 7e361d6 into valkey-io:main Jul 1, 2024
41 of 43 checks passed
@bjosv bjosv deleted the remove-unused-code-vkutil branch July 1, 2024 20:30
michael-grunder pushed a commit to michael-grunder/libvalkey that referenced this pull request Aug 1, 2024
- Remove unused code in `src/vkutil.*`
- Remove macro `NOT_REACHED()`.
- Remove function `vk_valid_port()`.
- Remove own assert macro in cluster code.
  We have a mixed usage of own and standard assert.
  Lets use standard from <assert.h> only.

Signed-off-by: Björn Svensson <[email protected]>
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.

2 participants