From ce6716909fab75dc98ff397f7238592c8ead5eb4 Mon Sep 17 00:00:00 2001 From: "Robin E. R. Davies" Date: Mon, 8 Sep 2025 08:12:46 -0400 Subject: [PATCH] Undo json fixes. --- PiPedalCommon/src/include/json.hpp | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/PiPedalCommon/src/include/json.hpp b/PiPedalCommon/src/include/json.hpp index 2972775..7792535 100644 --- a/PiPedalCommon/src/include/json.hpp +++ b/PiPedalCommon/src/include/json.hpp @@ -429,12 +429,7 @@ namespace pipedal void write(float f) { write_float(f); } - void write(float &f) { - write_float(f); - } - void write(const float &f) { - write_float(f); - } + void write_double(double f) { if ((std::isnan(f) || std::isinf(f))) @@ -456,17 +451,6 @@ namespace pipedal write_double(d); } - void write(double &d) - { - write_double(d); - } - void write(const double &d) - { - write_double(d); - } - - - template void write(const std::vector &value) {