mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-25 01:41:43 +00:00
[hal] Remove useless usage reporting return (#8625)
The value is not used anywhere and it also just returns 0 (was a value from Netcomm in pre-2027).
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
// Open Source Software; you can modify and/or share it under the terms of
|
||||
// the WPILib BSD license file in the root directory of this project.
|
||||
|
||||
#include "wpi/hal/UsageReporting.h"
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include <fmt/format.h>
|
||||
@@ -27,8 +29,8 @@ static ::SystemServerUsageReporting* systemServerUsage;
|
||||
|
||||
extern "C" {
|
||||
|
||||
int32_t HAL_ReportUsage(const struct WPI_String* resource,
|
||||
const struct WPI_String* data) {
|
||||
void HAL_ReportUsage(const struct WPI_String* resource,
|
||||
const struct WPI_String* data) {
|
||||
auto resourceStr = wpi::util::to_string_view(resource);
|
||||
auto& publisher = systemServerUsage->publishers[resourceStr];
|
||||
if (!publisher) {
|
||||
@@ -38,8 +40,6 @@ int32_t HAL_ReportUsage(const struct WPI_String* resource,
|
||||
.Publish();
|
||||
}
|
||||
publisher.Set(wpi::util::to_string_view(data));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
} // extern "C"
|
||||
|
||||
Reference in New Issue
Block a user