[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:
Gold856
2026-02-20 18:28:57 -05:00
committed by GitHub
parent 0c44e63465
commit 1806cd2d78
7 changed files with 24 additions and 31 deletions

View File

@@ -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"