From 67fe1095be6ded0b67cc680e3a40408f0a8ef828 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Fri, 20 Mar 2020 02:32:07 +0000 Subject: [PATCH] remove unused interpolate_pixel_unaligned_2() drawing helper Signed-off-by: Ivailo Monev --- src/gui/painting/qdrawhelper.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/gui/painting/qdrawhelper.cpp b/src/gui/painting/qdrawhelper.cpp index f79872bec..9955348fc 100644 --- a/src/gui/painting/qdrawhelper.cpp +++ b/src/gui/painting/qdrawhelper.cpp @@ -3207,16 +3207,6 @@ inline quint32 eff_ialpha_4(quint32 a, const qargb8555 *dummy) return 0x20202020 - eff_alpha_4(a, dummy); } -template -inline void interpolate_pixel_unaligned_2(DST *dest, const SRC *src, - quint16 alpha) -{ - const quint16 a = eff_alpha_2(alpha, dest); - const quint16 ia = eff_ialpha_2(alpha, dest); - dest[0] = DST(src[0]).byte_mul(a >> 8) + dest[0].byte_mul(ia >> 8); - dest[1] = DST(src[1]).byte_mul(a & 0xff) + dest[1].byte_mul(ia & 0xff); -} - template inline void interpolate_pixel_2(DST *dest, const SRC *src, quint16 alpha) {