revert isLocal metod and use downloads instead to decide when cache packages.
[platform/upstream/libzypp.git] / zypp / url / UrlBase.cc
index b3c9333..f9fa8f2 100644 (file)
@@ -22,7 +22,6 @@
 #include <arpa/inet.h>
 
 #include <iostream>
-#include <set>
 
 // in the Estonian locale, a-z excludes t, for example. #302525
 // http://en.wikipedia.org/wiki/Estonian_alphabet
@@ -429,30 +428,6 @@ namespace zypp
       return true;
     }
 
-    // ---------------------------------------------------------------
-    bool
-    UrlBase::isLocal() const
-    {
-      static std::set<std::string> remote;
-      if (remote.empty()) //fill set
-      {
-        remote.insert("http");
-        remote.insert("ftp");
-        remote.insert("smb");
-        remote.insert("ldap");
-        remote.insert("ldaps");
-        remote.insert("https");
-        remote.insert("sftp");
-        remote.insert("cifs");
-      }
-
-      if ( remote.find(getScheme())!=remote.end() )
-      {
-        return false;
-      }
-
-      return true;
-    }
 
     // ---------------------------------------------------------------
     std::string