From bd01d80ffc5fec898117814f5bb5478639020ccf Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 7 Jan 2014 00:46:47 +0100 Subject: [PATCH] pcm/Utils: remove unused function pcm_end_pointer() --- src/pcm/PcmUtils.hxx | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/pcm/PcmUtils.hxx b/src/pcm/PcmUtils.hxx index 0ca5dd4ac..9c741e55b 100644 --- a/src/pcm/PcmUtils.hxx +++ b/src/pcm/PcmUtils.hxx @@ -29,18 +29,6 @@ enum class SampleFormat : uint8_t; template struct SampleTraits; -/** - * Add a byte count to the specified pointer. This is a utility - * function to convert a source pointer and a byte count to an "end" - * pointer for use in loops. - */ -template -static inline const T * -pcm_end_pointer(const T *p, size_t size) -{ - return (const T *)((const uint8_t *)p + size); -} - /** * Check if the value is within the range of the provided bit size, * and caps it if necessary.