From: André Hentschel Subject: d3dx9_36/tests: Remove unused functions (Clang) Message-Id: <546F9991.80608@dawncrow.de> Date: Fri, 21 Nov 2014 20:59:13 +0100 --- dlls/d3dx9_36/tests/surface.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/dlls/d3dx9_36/tests/surface.c b/dlls/d3dx9_36/tests/surface.c index 4490dc3..5846281 100644 --- a/dlls/d3dx9_36/tests/surface.c +++ b/dlls/d3dx9_36/tests/surface.c @@ -30,13 +30,6 @@ static inline int get_ref(IUnknown *obj) return IUnknown_Release(obj); } -#define check_ref(obj, exp) _check_ref(__LINE__, obj, exp) -static inline void _check_ref(unsigned int line, IUnknown *obj, int exp) -{ - int ref = get_ref(obj); - ok_(__FILE__, line)(exp == ref, "Invalid refcount. Expected %d, got %d\n", exp, ref); -} - #define check_release(obj, exp) _check_release(__LINE__, obj, exp) static inline void _check_release(unsigned int line, IUnknown *obj, int exp) { @@ -608,13 +601,6 @@ static void test_D3DXGetImageInfo(void) if(testbitmap_ok) DeleteFileA("testbitmap.bmp"); } -#define check_pixel_1bpp(lockrect, x, y, color) _check_pixel_1bpp(__LINE__, lockrect, x, y, color) -static inline void _check_pixel_1bpp(unsigned int line, const D3DLOCKED_RECT *lockrect, int x, int y, BYTE expected_color) -{ - BYTE color = ((BYTE*)lockrect->pBits)[x + y * lockrect->Pitch]; - ok_(__FILE__, line)(color == expected_color, "Got color 0x%02x, expected 0x%02x\n", color, expected_color); -} - #define check_pixel_2bpp(lockrect, x, y, color) _check_pixel_2bpp(__LINE__, lockrect, x, y, color) static inline void _check_pixel_2bpp(unsigned int line, const D3DLOCKED_RECT *lockrect, int x, int y, WORD expected_color) {