examples: Remove unused constants

Unused variables, constants, and functions cause compiler warnings on
recent compilers. We therefore remove those, or comment them out. The
heuristic for when to comment out and when to delete is as such: If
there is a list of constants or variables, where the unused constant
makes sense within a list, it is commented out. Otherwise, it is
deleted.
This commit is contained in:
Martin Braun 2024-10-24 10:19:13 +02:00 committed by joergho
parent 1f2c28a399
commit 0fdc47dfaf
2 changed files with 0 additions and 2 deletions

View file

@ -88,7 +88,6 @@ static const double GPIO_DEFAULT_RX_RATE = 500e3;
static const double GPIO_DEFAULT_TX_RATE = 500e3;
static const double GPIO_DEFAULT_DWELL_TIME = 2.0;
static const size_t GPIO_DEFAULT_NUM_BITS = 12;
static const std::string GPIO_DEFAULT_CTRL = "0x0"; // all as user controlled
static const std::string GPIO_DEFAULT_DDR = "0x0"; // all as inputs
static const std::string GPIO_DEFAULT_OUT = "0x0";
constexpr size_t GPIO_MIN_NUM_BITS = 5;

View file

@ -16,7 +16,6 @@
#include <boost/program_options.hpp>
#include <iostream>
static const std::string SPI_DEFAULT_GPIO = "GPIOA";
static const size_t SPI_DEFAULT_CLK_PIN = 0;
static const size_t SPI_DEFAULT_SDI_PIN = 1;
static const size_t SPI_DEFAULT_SDO_PIN = 2;