Remove a constructor that we can't test. (#340)
There are currently no paths that lead to it, and it has a bug anyway; if a large enough value is passed into sec, then we will overflow sec on the multiply. Just remove it since we can't reach the code anyway. Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
This commit is contained in:
parent
5a99bbdc6e
commit
b8d72d682a
1 changed files with 0 additions and 4 deletions
|
@ -62,10 +62,6 @@ public:
|
|||
private:
|
||||
rcl_time_point_value_t rcl_time_;
|
||||
|
||||
Time(std::uint32_t sec, std::uint32_t nanosec)
|
||||
: rcl_time_(RCL_S_TO_NS(sec) + nanosec)
|
||||
{}
|
||||
|
||||
explicit Time(rcl_time_point_value_t && rcl_time)
|
||||
: rcl_time_(std::forward<decltype(rcl_time)>(rcl_time))
|
||||
{}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue