summaryrefslogtreecommitdiffstats
path: root/src/freshklam.cpp
diff options
context:
space:
mode:
authorMavridis Philippe <[email protected]>2021-01-14 20:45:48 +0200
committerMavridis Philippe <[email protected]>2021-01-14 20:45:48 +0200
commit83b1cf63165d62d294621d3003f4b2d5f5fa6c8a (patch)
treed9337d7aa74100a7c0ad30e71dab282f070d146f /src/freshklam.cpp
parentf84093be98c2b95e8cad2d56aa8635887dad8faf (diff)
downloadklamav-83b1cf63165d62d294621d3003f4b2d5f5fa6c8a.tar.gz
klamav-83b1cf63165d62d294621d3003f4b2d5f5fa6c8a.zip
Freshklam: removed unneeded code
Signed-off-by: Mavridis Philippe <[email protected]>
Diffstat (limited to 'src/freshklam.cpp')
-rw-r--r--src/freshklam.cpp50
1 files changed, 0 insertions, 50 deletions
diff --git a/src/freshklam.cpp b/src/freshklam.cpp
index a00db74..791e78e 100644
--- a/src/freshklam.cpp
+++ b/src/freshklam.cpp
@@ -252,7 +252,6 @@ Freshklam::Freshklam(TQWidget *parent, const char *name)
initCheckBoxes();
- checkInternet();
}
Freshklam::~Freshklam()
@@ -782,8 +781,6 @@ void Freshklam::createDBDir(){
}
if (ok){
- lastDownloadPaths.prepend( TQString("%1").arg(path));
- config = TDEGlobal::config();
config->setGroup("Freshklam");
config->writeEntry("lastDownloadPaths", lastDownloadPaths);
config->sync();
@@ -826,53 +823,6 @@ void Freshklam::enableAutoUpdates()
}
-void Freshklam::checkForNewClamAVNow()
-{
-
- updater->checkForNewClamAVDirectly();
-}
-
-void Freshklam::checkForNewKlamAVNow()
-{
-
- updater->checkForNewKlamAVDirectly();
-}
-
-void
-Freshklam::checkInternet() //SLOT
-{
-
- m_url.setHost( "prdownloads.sourceforge.net" );
- if ( !m_url.port() ) m_url.setPort( 80 );
-
- connect( &m_resolver, SIGNAL( finished( KResolverResults ) ), SLOT( resolved( KResolverResults ) ) );
- connectToHost();
-}
-
-void
-Freshklam::connectToHost() //SLOT
-{
-
- ////kdDebug() << m_url.host() << endl;
-
- m_resolver.setNodeName( m_url.host() );
- m_resolver.setFamily( KResolver::InetFamily );
- m_resolver.start();
-
-}
-
-
-void
-Freshklam::resolved( KResolverResults result) // SLOT
-{
-
- if ((!( result.error() != KResolver::NoError || result.isEmpty() )) ){
- updater->checkForNewKlamAV();
- }else
- kdDebug() << "network error or not set to check for new klamav" << endl;
-}
-
-
void
Freshklam::getCurrentVersionOfClamAV( )
{