Nikolay Sivov : dwrite: Remove unused functions.

Alexandre Julliard julliard at winehq.org
Tue Jul 2 15:32:01 CDT 2019


Module: wine
Branch: master
Commit: 5a33f86ec97d504bc3fd294b8bd858470d9cece2
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=5a33f86ec97d504bc3fd294b8bd858470d9cece2

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Tue Jul  2 09:00:28 2019 +0300

dwrite: Remove unused functions.

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/dwrite/analyzer.c | 8 --------
 dlls/dwrite/font.c     | 5 -----
 2 files changed, 13 deletions(-)

diff --git a/dlls/dwrite/analyzer.c b/dlls/dwrite/analyzer.c
index 679e1ed..8e58e61 100644
--- a/dlls/dwrite/analyzer.c
+++ b/dlls/dwrite/analyzer.c
@@ -1394,14 +1394,6 @@ static HRESULT WINAPI dwritetextanalyzer_GetGdiCompatibleGlyphPlacements(IDWrite
     return hr;
 }
 
-static inline FLOAT get_cluster_advance(const FLOAT *advances, UINT32 start, UINT32 end)
-{
-    FLOAT advance = 0.0f;
-    for (; start < end; start++)
-        advance += advances[start];
-    return advance;
-}
-
 static HRESULT apply_cluster_spacing(float leading_spacing, float trailing_spacing, float min_advance_width,
         unsigned int start, unsigned int end, float const *advances, DWRITE_GLYPH_OFFSET const *offsets,
         DWRITE_SHAPING_GLYPH_PROPERTIES const *glyph_props, float *modified_advances,
diff --git a/dlls/dwrite/font.c b/dlls/dwrite/font.c
index 5f4abc7..3f11b1d 100644
--- a/dlls/dwrite/font.c
+++ b/dlls/dwrite/font.c
@@ -5123,11 +5123,6 @@ static HRESULT WINAPI glyphrunanalysis_GetAlphaTextureBounds(IDWriteGlyphRunAnal
     return S_OK;
 }
 
-static inline int get_dib_stride( int width, int bpp )
-{
-    return ((width * bpp + 31) >> 3) & ~3;
-}
-
 static inline BYTE *get_pixel_ptr(BYTE *ptr, DWRITE_TEXTURE_TYPE type, const RECT *runbounds, const RECT *bounds)
 {
     if (type == DWRITE_TEXTURE_CLEARTYPE_3x1)




More information about the wine-cvs mailing list