Mailinglist Archive: zypp-commit (149 mails)

< Previous Next >
[zypp-commit] r5420 - in /branches/SuSE-Linux-10_2-Branch/updater-kde/updater/zypp: ZYppUpdater.cpp ZYppUpdater.h
  • From: tgoettlicher@xxxxxxxxxxxxxxxx
  • Date: Fri, 20 Apr 2007 08:59:46 -0000
  • Message-id: <20070420085946.D62D4355AC@xxxxxxxxxxxxxxxx>
Author: tgoettlicher
Date: Fri Apr 20 10:59:46 2007
New Revision: 5420

URL: http://svn.opensuse.org/viewcvs/zypp?rev=5420&view=rev
Log:
Code clean-up


Modified:
    branches/SuSE-Linux-10_2-Branch/updater-kde/updater/zypp/ZYppUpdater.cpp
    branches/SuSE-Linux-10_2-Branch/updater-kde/updater/zypp/ZYppUpdater.h

Modified: branches/SuSE-Linux-10_2-Branch/updater-kde/updater/zypp/ZYppUpdater.cpp
URL: http://svn.opensuse.org/viewcvs/zypp/branches/SuSE-Linux-10_2-Branch/updater-kde/updater/zypp/ZYppUpdater.cpp?rev=5420&r1=5419&r2=5420&view=diff
==============================================================================
--- branches/SuSE-Linux-10_2-Branch/updater-kde/updater/zypp/ZYppUpdater.cpp (original)
+++ branches/SuSE-Linux-10_2-Branch/updater-kde/updater/zypp/ZYppUpdater.cpp Fri Apr 20 10:59:46 2007
@@ -188,30 +188,6 @@
   _stderr_buffer += QString::fromUtf8( buffer, buflen );
 }
 
-
-bool ZYppUpdater::networkOnline() const
-{
-  // When getNetworkStatus() returns "Establishing" we
-  // give KNetworkmanager some seconds to establish a
-  // network connection and try again. 
-
-  kdDebug() << "Checking network connection..." << endl;
-  switch (getNetworkStatus())
-  {
-    case 1:               // NoNetworks
-    case 8: return true;  // Online         ==> true
-
-    case 2:               // Unreachable
-    case 3:               // OfflineDisconnected
-    case 4:               // OfflineFailed
-    case 5:               // ShuttingDown
-    case 6: return false; // Offline        ==> false
-    case 7: break;        // Establishing   ==> next attempt
-  }
-  return false;
-}
-
-
 int ZYppUpdater::getNetworkStatus() const
 {
   //enum EnumStatus { NoNetworks = 1, Unreachable, OfflineDisconnected,  OfflineFailed, ShuttingDown, Offline, Establishing, Online };

Modified: branches/SuSE-Linux-10_2-Branch/updater-kde/updater/zypp/ZYppUpdater.h
URL: http://svn.opensuse.org/viewcvs/zypp/branches/SuSE-Linux-10_2-Branch/updater-kde/updater/zypp/ZYppUpdater.h?rev=5420&r1=5419&r2=5420&view=diff
==============================================================================
--- branches/SuSE-Linux-10_2-Branch/updater-kde/updater/zypp/ZYppUpdater.h (original)
+++ branches/SuSE-Linux-10_2-Branch/updater-kde/updater/zypp/ZYppUpdater.h Fri Apr 20 10:59:46 2007
@@ -136,7 +136,6 @@
 
        private:
     
-    bool networkOnline() const;
     int getNetworkStatus() const;
 
     void doCheckForUpdates(bool lastattempt=false);

--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages