From feb777a050eb34b4873eafa1a59e44a041db0a99 Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Fri, 18 Apr 2008 21:29:15 -0500 Subject: [PATCH] Get rid of useless Region_Base class. --- Timeline/Region.H | 35 +---------------------------------- 1 file changed, 1 insertion(+), 34 deletions(-) diff --git a/Timeline/Region.H b/Timeline/Region.H index d8a9418..0428de8 100644 --- a/Timeline/Region.H +++ b/Timeline/Region.H @@ -29,11 +29,8 @@ #include "Track_Widget.H" #include "Loggable.H" -class Region; -/* Base for engine. Just to maintain state. Must be free of FLTK - * stuff */ -class Region_Base : public Track_Widget +class Region : public Track_Widget { public: @@ -181,41 +178,12 @@ protected: free( sa ); -#ifndef ENGINE if ( _track ) _track->redraw(); -#endif } public: - Region_Base ( ) - { - _clip = NULL; - _scale = 1.0f; - } - -#ifdef ENGINE - /* for loggable */ - static Loggable * - create ( char **sa ) - { - Region_Base *r = new Region_Base; - - r->set( sa ); - - return (Loggable *)r; - } -#else - friend class Region; -#endif - -}; - -#ifndef ENGINE -class Region : public Region_Base -{ - static Fl_Boxtype _box; static Fl_Color _selection_color; static Fl_Color selection_color ( void ) { return _selection_color; } @@ -276,4 +244,3 @@ public: nframes_t write ( sample_t *buf, nframes_t nframes ); }; -#endif