From 80eb8d9e26007fb961d2bb7a41e5e3e5bf9360f1 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 2 Dec 2013 09:09:29 +0100 Subject: [PATCH] pcm/PcmUtils: remove unused function PcmClampN() --- src/pcm/PcmUtils.hxx | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/pcm/PcmUtils.hxx b/src/pcm/PcmUtils.hxx index febe12d7b..108ba85ae 100644 --- a/src/pcm/PcmUtils.hxx +++ b/src/pcm/PcmUtils.hxx @@ -63,16 +63,4 @@ PcmClamp(U x) return T(x); } -/** - * Check if the values in this buffer are within the range of the - * provided bit size, and clamps them whenever necessary. - */ -template -static inline void -PcmClampN(T *dest, const U *src, unsigned n) -{ - while (n-- > 0) - *dest++ = PcmClamp(*src++); -} - #endif