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

Remove unused headers #190

Merged

Conversation

christophebedard
Copy link
Member

@christophebedard christophebedard commented Apr 30, 2021

ros2/rcutils#340 deprecates rcutils/get_env.h. This PR doesn't need to wait until the rcutils PR is merged, though.

I simply removed the #include since nothing from that header was actually used.

Signed-off-by: Christophe Bedard <bedard.christophe@gmail.com>
@@ -17,7 +17,6 @@
#include <memory>

#include "rcutils/env.h"
#include "rcutils/get_env.h"
Copy link
Contributor

Choose a reason for hiding this comment

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

Unfortunately, we can't do this here because rcutils_get_env is used below (at least, we can't do this prior to ros2/rcutils#340 being merged). So either this has to remain part of the larger series to move rcutils_get_env into env.h, or we have to switch the test code to use rcpputils::get_env. Either is fine with me.

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

rcutils/env.h includes rcutils/get_env.h, though: https://github.com/ros2/rcutils/blob/ca42bc9f588e11ad40f5879dcb9a364b435d2cba/include/rcutils/env.h#L31

Ah! I totally missed that. Thanks for the heads up. I'll approve and run CI on this, then.

@clalancette
Copy link
Contributor

CI:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@clalancette clalancette merged commit 52aae84 into ros2:master May 4, 2021
@christophebedard christophebedard deleted the deprecate-rcutils-get-env-header branch May 4, 2021 14:32
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.

None yet

3 participants