Skip to content

Commit

Permalink
Remove unused variable and function
Browse files Browse the repository at this point in the history
  • Loading branch information
smartSRA committed Nov 2, 2023
1 parent f757077 commit 4f05932
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions umrr_ros2_driver/include/umrr_ros2_driver/UpdateService.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,4 @@ using namespace com::types;
using namespace com::master;

void MyUpdateServiceInfoHandler(SWUpdateInfo &updateInfoLocal);
void MyResponseCallback(IN ClientId clientId,
IN std::shared_ptr<ResponseBatch> response);

void StartSoftwareUpdate(ClientId client_id, std::string update_image);
4 changes: 0 additions & 4 deletions umrr_ros2_driver/src/UpdateService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,9 @@ using namespace com::types;
using namespace com::master;

static SWUpdateInfo UpdateInfoStatic;
static int CallBackCounter = 0;

void MyUpdateServiceInfoHandler(SWUpdateInfo &updateInfoLocal) {
UpdateInfoStatic = updateInfoLocal;
CallBackCounter++;
uint64_t downloadedBytes = updateInfoLocal.GetCurrentDownloadedBytes();
RCLCPP_INFO(rclcpp::get_logger("rclcpp"), "Downloaded bytes: %lu", downloadedBytes);
}
Expand All @@ -51,7 +49,6 @@ void StartSoftwareUpdate(ClientId client_id, std::string update_image) {

UpdateInfoStatic.SetUpdateStatus(RUNNING);
UpdateInfoStatic.SetCurrentDownloadedBytes(0);
int32_t CallCounter = 0;
bool readyFlag = false;

if (UpdateServicePtr->SoftwareUpdate(update_image, client_id,
Expand All @@ -65,7 +62,6 @@ void StartSoftwareUpdate(ClientId client_id, std::string update_image) {
readyFlag = true;
}

CallCounter++;
std::this_thread::sleep_for(std::chrono::milliseconds(100));

while (UpdateInfoStatic.GetUpdateStatus() == RUNNING && !readyFlag) {
Expand Down

0 comments on commit 4f05932

Please sign in to comment.