Skip to content

Commit

Permalink
Remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterJohnson authored Jan 10, 2024
1 parent dcd35ca commit 634e856
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions sysid/src/main/native/cpp/view/DataSelector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,23 +197,6 @@ DataSelector::Tests DataSelector::LoadTests(
return tests;
}

template <typename T>
static void AddSample(std::vector<MotorData::Run::Sample<T>>& samples,
const wpi::log::DataLogRecord& record, bool isDouble,
double scale) {
if (isDouble) {
double val;
if (record.GetDouble(&val)) {
samples.emplace_back(units::second_t{record.GetTimestamp() * 1.0e-6},
T{val * scale});
}
} else {
float val;
if (record.GetFloat(&val)) {
}
}
}

template <typename T>
static void AddSamples(std::vector<MotorData::Run::Sample<T>>& samples,
const std::vector<std::pair<int64_t, double>>& data,
Expand Down

0 comments on commit 634e856

Please sign in to comment.