aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-12-02 09:09:29 +0100
committerMax Kellermann <max@duempel.org>2013-12-02 11:21:32 +0100
commit80eb8d9e26007fb961d2bb7a41e5e3e5bf9360f1 (patch)
tree0b2efa034367f0dae717a2538cdea785608d87d5 /src
parent30c4136c4d67953d643626fcb1aceb6782ac35f8 (diff)
downloadmpd-80eb8d9e26007fb961d2bb7a41e5e3e5bf9360f1.tar.gz
mpd-80eb8d9e26007fb961d2bb7a41e5e3e5bf9360f1.tar.xz
mpd-80eb8d9e26007fb961d2bb7a41e5e3e5bf9360f1.zip
pcm/PcmUtils: remove unused function PcmClampN()
Diffstat (limited to 'src')
-rw-r--r--src/pcm/PcmUtils.hxx12
1 files changed, 0 insertions, 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<typename T, typename U, unsigned bits>
-static inline void
-PcmClampN(T *dest, const U *src, unsigned n)
-{
- while (n-- > 0)
- *dest++ = PcmClamp<T, U, bits>(*src++);
-}
-
#endif