Author: mordante
Date: Sat Apr 25 22:46:19 2009
New Revision: 35217
URL: http://svn.gna.org/viewcvs/wesnoth?rev=35217&view=rev
Log:
Remove unused clone function.
Modified:
trunk/src/text.cpp
trunk/src/text.hpp
Modified: trunk/src/text.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/text.cpp?rev=35217&r1=35216&r2=35217&view=diff
==============================================================================
--- trunk/src/text.cpp (original)
+++ trunk/src/text.cpp Sat Apr 25 22:46:19 2009
@@ -250,20 +250,6 @@
}
}
-void ttext::clone()
-{
- context_ = pango_cairo_font_map_create_context((
-
reinterpret_cast<PangoCairoFontMap*>(pango_cairo_font_map_get_default())));
- // With 72 dpi the sizes are the same as with SDL_TTF so hardcoded.
- pango_cairo_context_set_resolution(context_, 72.0);
-
- layout_ = pango_layout_new(context_);
- pango_layout_set_ellipsize(layout_, ellipse_mode_);
-
- surface_dirty_ = true;
- surface_buffer_ = 0;
-}
-
ttext& ttext::set_text(const std::string& text, const bool markedup)
{
if(markedup != markedup_text_ || text != text_) {
Modified: trunk/src/text.hpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/text.hpp?rev=35217&r1=35216&r2=35217&view=diff
==============================================================================
--- trunk/src/text.hpp (original)
+++ trunk/src/text.hpp Sat Apr 25 22:46:19 2009
@@ -154,9 +154,6 @@
*/
size_t get_length() const { return length_; }
- /** Helper for policies::tdeep_copy. */
- void clone();
-
/***** ***** ***** ***** Setters / getters ***** ***** ***** *****/
ttext& set_text(const std::string& text, const bool markedup);
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits