Skip to content

Commit

Permalink
remove (void)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkorenkovnl committed Mar 15, 2024
1 parent 04d7f17 commit 139764e
Showing 1 changed file with 8 additions and 17 deletions.
25 changes: 8 additions & 17 deletions rosbag2_storage_mcap/src/mcap_storage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -924,19 +924,16 @@ MCAPStorageSnapshot::~MCAPStorageSnapshot()
/** BaseIOInterface **/
#ifdef ROSBAG2_STORAGE_MCAP_HAS_STORAGE_OPTIONS
void MCAPStorageSnapshot::open(const rosbag2_storage::StorageOptions & storage_options,
rosbag2_storage::storage_interfaces::IOFlag io_flag)
rosbag2_storage::storage_interfaces::IOFlag)
{
(void)io_flag;
storage_options_ = storage_options;
uri_ = storage_options.uri;
}
#endif

void MCAPStorageSnapshot::open(const std::string & uri, rosbag2_storage::storage_interfaces::IOFlag io_flag)
void MCAPStorageSnapshot::open(const std::string & uri, rosbag2_storage::storage_interfaces::IOFlag)
{
uri_ = uri;
//this class is used only for READ_WRITE
(void)io_flag;
}

/** BaseInfoInterface **/
Expand All @@ -962,9 +959,8 @@ std::string MCAPStorageSnapshot::get_storage_identifier() const

/** BaseReadInterface **/
#ifdef ROSBAG2_STORAGE_MCAP_HAS_SET_READ_ORDER
bool MCAPStorageSnapshot::set_read_order(const rosbag2_storage::ReadOrder & read_order)
bool MCAPStorageSnapshot::set_read_order(const rosbag2_storage::ReadOrder &)
{
(void)read_order;
return false;
}
#endif
Expand All @@ -985,31 +981,27 @@ std::vector<rosbag2_storage::TopicMetadata> MCAPStorageSnapshot::get_all_topics_
}

void MCAPStorageSnapshot::get_all_message_definitions(
std::vector<rosbag2_storage::MessageDefinition> & definitions)
std::vector<rosbag2_storage::MessageDefinition> &)
{
(void)definitions;
}

/** ReadOnlyInterface **/
void MCAPStorageSnapshot::set_filter(const rosbag2_storage::StorageFilter & storage_filter)
void MCAPStorageSnapshot::set_filter(const rosbag2_storage::StorageFilter &)
{
(void)storage_filter;
}

void MCAPStorageSnapshot::reset_filter()
{
}

#ifdef ROSBAG2_STORAGE_MCAP_OVERRIDE_SEEK_METHOD
void MCAPStorageSnapshot::seek(const rcutils_time_point_value_t & time_stamp)
void MCAPStorageSnapshot::seek(const rcutils_time_point_value_t &)
{
(void)time_stamp;
}

#else
void MCAPStorageSnapshot::seek(const rcutils_time_point_value_t & time_stamp)
void MCAPStorageSnapshot::seek(const rcutils_time_point_value_t &)
{
(void)time_stamp;
}
#endif

Expand All @@ -1020,9 +1012,8 @@ uint64_t MCAPStorageSnapshot::get_minimum_split_file_size() const
}

/** BaseWriteInterface **/
void MCAPStorageSnapshot::write(std::shared_ptr<const rosbag2_storage::SerializedBagMessage> msg)
void MCAPStorageSnapshot::write(std::shared_ptr<const rosbag2_storage::SerializedBagMessage>)
{
(void)msg;
}

void MCAPStorageSnapshot::write(const std::vector<std::shared_ptr<const rosbag2_storage::SerializedBagMessage>> & msgs)
Expand Down

0 comments on commit 139764e

Please sign in to comment.