From ba285aa9faf2c01c92d96bea83743bf0bf89c29b Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Sat, 11 Oct 2014 15:55:15 -0700 Subject: [PATCH] remove unused (after 8bc7a56cda204e9e) font_face::char_height_ --- include/mapnik/text/face.hpp | 1 - src/text/face.cpp | 5 +---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/include/mapnik/text/face.hpp b/include/mapnik/text/face.hpp index 2076769fb..71fdf6762 100644 --- a/include/mapnik/text/face.hpp +++ b/include/mapnik/text/face.hpp @@ -75,7 +75,6 @@ public: private: FT_Face face_; mutable glyph_info_cache_type glyph_info_cache_; - mutable double char_height_; }; using face_ptr = std::shared_ptr; diff --git a/src/text/face.cpp b/src/text/face.cpp index 1ac9f9757..9bf1fe0a8 100644 --- a/src/text/face.cpp +++ b/src/text/face.cpp @@ -33,18 +33,15 @@ namespace mapnik font_face::font_face(FT_Face face) : face_(face), - glyph_info_cache_(), - char_height_(0.0) {} + glyph_info_cache_() {} bool font_face::set_character_sizes(double size) { - char_height_ = 0.0; return !FT_Set_Char_Size(face_,0,(FT_F26Dot6)(size * (1<<6)),0,0); } bool font_face::set_unscaled_character_sizes() { - char_height_ = 0.0; return !FT_Set_Char_Size(face_,0,face_->units_per_EM,0,0); }