Tag: cws_src680_dba24b
User: fs      
Date: 2007-08-27 10:47:29+0000
Modified:
   dba/dbaccess/source/ui/dlg/generalpage.cxx
   dba/dbaccess/source/ui/dlg/generalpage.hxx

Log:
 prepare #i80930#: removed dead code

File Changes:

Directory: /dba/dbaccess/source/ui/dlg/
=======================================

File [changed]: generalpage.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/dlg/generalpage.cxx?r1=1.51&r2=1.51.28.1
Delta lines:  +3 -18
--------------------
--- generalpage.cxx     2007-07-06 08:17:12+0000        1.51
+++ generalpage.cxx     2007-08-27 10:47:27+0000        1.51.28.1
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: generalpage.cxx,v $
  *
- *  $Revision: 1.51 $
+ *  $Revision: 1.51.28.1 $
  *
- *  last change: $Author: rt $ $Date: 2007/07/06 08:17:12 $
+ *  last change: $Author: fs $ $Date: 2007/08/27 10:47:27 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -245,20 +245,6 @@
 
 
        
//-------------------------------------------------------------------------
-       void OGeneralPage::initializeHistory()
-       {
-               m_aSelectionHistory.clear();
-               if (m_pCollection)
-               {
-                       for (   ODsnTypeCollection::TypeIterator aTypeLoop =  
m_pCollection->begin();
-                                       aTypeLoop != m_pCollection->end();
-                                       ++aTypeLoop
-                               )
-                               m_aSelectionHistory[aTypeLoop.getType()] = 
m_pCollection->getDatasourcePrefix(aTypeLoop.getType());
-               }
-
-       }
-       
//-------------------------------------------------------------------------
        void OGeneralPage::setParentTitle(DATASOURCE_TYPE _eSelectedType)
        {
         if (!m_DBWizardMode)
@@ -336,7 +322,6 @@
        
//-------------------------------------------------------------------------
        void OGeneralPage::implInitControls(const SfxItemSet& _rSet, sal_Bool 
_bSaveValue)
        {
-               initializeHistory();
                initializeTypeList();
 
                // first check whether or not the selection is invalid or 
readonly (invalid implies readonly, but not vice versa)

File [changed]: generalpage.hxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/dlg/generalpage.hxx?r1=1.18&r2=1.18.46.1
Delta lines:  +3 -6
-------------------
--- generalpage.hxx     2007-05-10 10:26:00+0000        1.18
+++ generalpage.hxx     2007-08-27 10:47:27+0000        1.18.46.1
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: generalpage.hxx,v $
  *
- *  $Revision: 1.18 $
+ *  $Revision: 1.18.46.1 $
  *
- *  last change: $Author: kz $ $Date: 2007/05/10 10:26:00 $
+ *  last change: $Author: fs $ $Date: 2007/08/27 10:47:27 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -112,10 +112,8 @@
 
 
                ODsnTypeCollection*     m_pCollection;  /// the DSN type 
collection instance
-               DECLARE_STL_MAP(DATASOURCE_TYPE, String, ::std::less< 
DATASOURCE_TYPE >, SelectionHistory);
                DATASOURCE_TYPE         m_eCurrentSelection;    /// currently 
selected type
                DATASOURCE_TYPE         m_eNotSupportedKnownType;       /// if 
a data source of an unsupported, but known type is encountered ....
-               SelectionHistory        m_aSelectionHistory;    /// last 
selected ConnectURLs for all types
 
                enum SPECIAL_MESSAGE
                {
@@ -165,7 +163,6 @@
        protected:
 
                void onTypeSelected(const DATASOURCE_TYPE _eType);
-               void initializeHistory();
                void initializeTypeList();
 
                void implSetCurrentType( const DATASOURCE_TYPE _eType );




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to