[yast-commit] r41098 - in /branches/tmp/sh/mod-ui/ncurses/src: NCPopupTable.cc NCPopupTable.h
![](https://seccdn.libravatar.org/avatar/9d45ad4c714db4d170a42527a4a6b8dc.jpg?s=120&d=mm&r=g)
Author: gs Date: Wed Sep 26 09:49:58 2007 New Revision: 41098 URL: http://svn.opensuse.org/viewcvs/yast?rev=41098&view=rev Log: remove unused code Modified: branches/tmp/sh/mod-ui/ncurses/src/NCPopupTable.cc branches/tmp/sh/mod-ui/ncurses/src/NCPopupTable.h Modified: branches/tmp/sh/mod-ui/ncurses/src/NCPopupTable.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCPo... ============================================================================== --- branches/tmp/sh/mod-ui/ncurses/src/NCPopupTable.cc (original) +++ branches/tmp/sh/mod-ui/ncurses/src/NCPopupTable.cc Wed Sep 26 09:49:58 2007 @@ -18,11 +18,9 @@ /-*/ #include "Y2Log.h" #include "NCPopupTable.h" -#include "NCPushButton.h" #include "NCTable.h" #include "YMenuButton.h" -#include "NCLayoutBox.h" /////////////////////////////////////////////////////////////////// // @@ -35,7 +33,6 @@ NCPopupTable::NCPopupTable( const wpos at ) : NCPopup( at, false ) , sellist( 0 ) - , position( at ) { } @@ -73,8 +70,6 @@ sellist->SetSepWidht( 0 ); sellist->SetHotCol( 0 ); - NCMIL << "CurrentDialog firstChild: " << dynamic_cast<NCWidget *>(currentDialog()->firstChild()) << endl; - // TO DO: This will be obsolete once YTable is migrated // TO DO: This will be obsolete once YTable is migrated // TO DO: This will be obsolete once YTable is migrated @@ -174,30 +169,3 @@ sellist->stripHotkeys(); } } - -#if 0 -int NCPopupTable::preferredWidth() -{ - wsze sze = wGetDefsze(); - if ( sellist ) - return sellist->preferredWidth(); - else - return sze.W; -} - -int NCPopupTable::preferredHeight() -{ - wsze sze = wGetDefsze(); - if ( sellist ) - return sellist->preferredHeight(); - else - return sze.H; -} - -void NCPopupTable::setSize( int newwidth, int newheight ) -{ - NCMIL << "setSize() called with w: " << newwidth << " h: " << newheight << endl; - wRelocate( position, wsze( newheight, newwidth ) ); - firstChild()->setSize( newwidth, newheight ); -} -#endif Modified: branches/tmp/sh/mod-ui/ncurses/src/NCPopupTable.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCPo... ============================================================================== --- branches/tmp/sh/mod-ui/ncurses/src/NCPopupTable.h (original) +++ branches/tmp/sh/mod-ui/ncurses/src/NCPopupTable.h Wed Sep 26 09:49:58 2007 @@ -42,8 +42,8 @@ NCPopupTable ( const NCPopupTable & ); private: + NCTable * sellist; - wpos position; protected: @@ -65,12 +65,6 @@ public: void stripHotkeys(); - - //int preferredWidth(); - //int preferredHeight(); - - //void setSize( int newwidth, int newheight ); - }; /////////////////////////////////////////////////////////////////// -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
gs@svn.opensuse.org