Update of /cvsroot/plib/plib/src/pui
In directory sc8-pr-cvs1:/tmp/cvs-serv30803
Modified Files:
puGroup.cxx
Log Message:
Remove puRemoveGroup added in version 1.26, and explain the stack in a comment (John Fay)
Index: puGroup.cxx
===================================================================
RCS file: /cvsroot/plib/plib/src/pui/puGroup.cxx,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- puGroup.cxx 12 Nov 2003 19:02:03 -0000 1.26
+++ puGroup.cxx 16 Dec 2003 23:14:18 -0000 1.27
@@ -29,6 +29,12 @@
#define PUSTACK_MAX 100
+ /*
+ This is a stack of groups that are currently being filled with other widgets.
+ A group is pushed onto the stack when it is created and it is popped off the
+ stack when its "close" function is called.
+ */
+
static int currGroup = -1 ;
static puGroup *groupStack [ PUSTACK_MAX ] ;
@@ -49,28 +55,6 @@
ulSetError ( UL_WARNING, "PUI: puGroup stack is empty!" ) ;
}
-void puRemoveGroup ( puGroup *gr )
-{
- int index = currGroup ;
- while ( index >= 0 )
- {
- if ( groupStack [ index ] == gr )
- {
- int jndx ;
- for ( jndx = index; jndx < currGroup - 1; jndx ++ )
- groupStack [ jndx ] = groupStack [ jndx + 1 ] ;
-
- currGroup -- ;
- return ;
- }
-
- index -- ;
- }
-
- ulSetError ( UL_WARNING, "PUI: Trying to remove invalid puGroup from puGroup stack!" ) ;
-}
-
-
int puNoGroup ( void )
{
return currGroup < 0 ;
@@ -373,8 +357,6 @@
puGroup::~puGroup ()
{
void puCleanUpJunk ( void ) ;
-
- puRemoveGroup ( this ) ;
puObject *bo = getLastChild () ;
|