A gem of dead code
This commit is contained in:
parent
b57bf2903a
commit
c6e34be447
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue