From 406c79aea1b6f9c8bd1bbeb253ebc7cb97fc7e25 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 24 Jan 2003 00:02:24 +0000 Subject: out with the blackbox source --- otk/display.cc | 7 +------ otk/display.hh | 14 -------------- 2 files changed, 1 insertion(+), 20 deletions(-) (limited to 'otk') diff --git a/otk/display.cc b/otk/display.cc index 367ee3eb..af03801e 100644 --- a/otk/display.cc +++ b/otk/display.cc @@ -6,7 +6,6 @@ #include "display.hh" #include "screeninfo.hh" -#include "gccache.hh" #include "rendercontrol.hh" #include "util.hh" @@ -85,8 +84,7 @@ Display::Display() _scroll_lock_mask(0), _grab_count(0), _screeninfo_list(0), - _rendercontrol_list(0), - _gccache((GCCache*) 0) + _rendercontrol_list(0) { int junk; (void)junk; @@ -175,14 +173,11 @@ DISPLAY environment variable approriately.\n\n")); _screeninfo_list[i] = new ScreenInfo(i); _rendercontrol_list[i] = RenderControl::getRenderControl(i); } - - _gccache = new GCCache(ScreenCount(_display)); } Display::~Display() { - delete _gccache; while (_grab_count > 0) ungrab(); diff --git a/otk/display.hh b/otk/display.hh index 28d33675..0879ce32 100644 --- a/otk/display.hh +++ b/otk/display.hh @@ -9,7 +9,6 @@ extern "C" { namespace otk { class ScreenInfo; -class GCCache; class RenderControl; class Display; @@ -58,16 +57,6 @@ private: //! screen RenderControl** _rendercontrol_list; - //! A cache for re-using GCs, used by the drawing objects - /*! - @see Pen - @see Font - @see Image - @see ImageControl - @see Texture - */ - GCCache *_gccache; - // Handles X errors on the display /* Displays the error if compiled for debugging. @@ -84,9 +73,6 @@ public: //! Destroys the class, closes the X display ~Display(); - //! Returns the GC cache for the application - inline GCCache *gcCache() const { return _gccache; } - //! Gets information on a specific screen /*! Returns a ScreenInfo class, which contains information for a screen on the -- cgit v1.2.3