[vlc-commits] dwrite: remove unused factory

Steve Lhomme git at videolan.org
Wed Jul 3 11:54:20 CEST 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Jul  1 09:59:31 2019 +0200| [540bb0e537aecc371b2c97afe39e88196ac7c805] | committer: Steve Lhomme

dwrite: remove unused factory

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=540bb0e537aecc371b2c97afe39e88196ac7c805
---

 modules/text_renderer/freetype/fonts/dwrite.cpp | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/modules/text_renderer/freetype/fonts/dwrite.cpp b/modules/text_renderer/freetype/fonts/dwrite.cpp
index a83c23e4c5..943c60f3a2 100644
--- a/modules/text_renderer/freetype/fonts/dwrite.cpp
+++ b/modules/text_renderer/freetype/fonts/dwrite.cpp
@@ -212,16 +212,15 @@ extern "C" void DWrite_Close( FT_Stream )
 
 class TextSource : public IDWriteTextAnalysisSource
 {
-    IDWriteFactory              *mp_factory;
     IDWriteNumberSubstitution   *mp_substitution;
     wchar_t                      mpwsz_text[ 3 ];
     uint32_t                     mi_text_length;
     ULONG                        ml_ref_count;
 
 public:
-    TextSource( IDWriteFactory *p_factory, IDWriteNumberSubstitution *p_substitution,
+    TextSource( IDWriteNumberSubstitution *p_substitution,
                 const wchar_t *pwsz_text, uint32_t i_text_length )
-              : mp_factory( p_factory ), mp_substitution( p_substitution ), ml_ref_count( 0 )
+              : mp_substitution( p_substitution ), ml_ref_count( 0 )
     {
         memset( mpwsz_text, 0, sizeof( mpwsz_text ) );
         mi_text_length = i_text_length < 2 ? i_text_length : 2;
@@ -709,7 +708,7 @@ static char *DWrite_Fallback( filter_t *p_filter, const char *psz_family,
     if( unlikely( !pwsz_family ) ) return NULL;
 
     ComPtr< TextSource > p_ts;
-    p_ts = new(std::nothrow) TextSource( p_dw_sys->p_dw_factory.Get(), p_dw_sys->p_dw_substitution.Get(), p_text, i_text_length );
+    p_ts = new(std::nothrow) TextSource( p_dw_sys->p_dw_substitution.Get(), p_text, i_text_length );
     if( unlikely( p_ts == NULL ) ) { goto done; }
 
     if( p_dw_sys->p_dw_fallbacks->MapCharacters( p_ts.Get(), 0, i_text_length, p_dw_sys->p_dw_system_fonts.Get(), pwsz_family,



More information about the vlc-commits mailing list