A gem of dead code

This commit is contained in:
Andrey 2022-11-05 21:53:38 -04:00
parent b57bf2903a
commit c6e34be447
2 changed files with 1 additions and 11 deletions

View File

@ -267,10 +267,6 @@ private:
operation_mode_e operationMode;
};
#ifndef MAX
#define MAX(a,b) (((a)>(b))?(a):(b))
#endif
/**
* Misc values calculated from TriggerWaveform
*/

View File

@ -19,15 +19,11 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef COMMON_H_INCLUDED
#define COMMON_H_INCLUDED
#pragma ince
#if !defined(MIN)
#define MIN(a,b) (((a)<(b))?(a):(b))
#endif
#if !defined(MAX)
#define MAX(a,b) (((a)>(b))?(a):(b))
#endif
#define CLAMP(x, low, high) ({\
__typeof__(x) __x = (x); \
@ -35,5 +31,3 @@
__typeof__(high) __high = (high);\
(__x > __high) ? __high : ((__x < __low) ? __low : __x);\
})
#endif /* COMMON_H_INCLUDED */