Imported Upstream version 16.3.2
[platform/upstream/libzypp.git] / zypp / media / MediaAccess.cc
index f56f260..f119b00 100644 (file)
@@ -337,13 +337,13 @@ MediaAccess::release( const std::string & ejectDev )
 // filename is interpreted relative to the attached url
 // and a path prefix is preserved to destination
 void
-MediaAccess::provideFile(const Pathname & filename , const ByteCount &expectedFileSize) const
+MediaAccess::provideFile( const Pathname & filename ) const
 {
   if ( !_handler ) {
     ZYPP_THROW(MediaNotOpenException("provideFile(" + filename.asString() + ")"));
   }
 
-  _handler->provideFile( filename, expectedFileSize );
+  _handler->provideFile( filename );
 }
 
 void
@@ -470,7 +470,7 @@ void MediaAccess::getFile( const Url &from, const Pathname &to )
   try {
     media.open( u );
     media.attach();
-    media._handler->provideFileCopy( base, to, 0 );
+    media._handler->provideFileCopy( base, to );
     media.release();
   }
   catch (const MediaException & excpt_r)