From fd22e89593002a4fd155e5da1aabbaefb72433db Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Fri, 3 Jan 2014 14:23:52 -0200 Subject: Fix unused-function warning in qdrawhelper.cpp storePixel would have been called by storePixels but that function has an overload that uses memcpy instead. So it's really unused. Found by Clang 3.4. Change-Id: I661804e273486d3469221fdd362a24cd77cfb8a7 Reviewed-by: Gunnar Sletta --- src/gui/painting/qdrawhelper.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src') diff --git a/src/gui/painting/qdrawhelper.cpp b/src/gui/painting/qdrawhelper.cpp index cc28076b7c..d3e5b645c4 100644 --- a/src/gui/painting/qdrawhelper.cpp +++ b/src/gui/painting/qdrawhelper.cpp @@ -374,12 +374,6 @@ inline void QT_FASTCALL storePixel(uchar *dest, int index, reinterpret_cast(dest)[index] = quint24(pixel); } -template <> -inline void QT_FASTCALL storePixel(uchar *dest, int index, uint pixel) -{ - reinterpret_cast(dest)[index] = pixel; -} - template inline void QT_FASTCALL storePixels(uchar *dest, const uint *src, int index, int count) { -- cgit v1.2.3