Revert "[Tizen] Add DownloadRemoteFileIntoMemory function"
authorJoogab Yun <joogab.yun@samsung.com>
Fri, 27 Dec 2019 08:29:49 +0000 (17:29 +0900)
committerJoogab Yun <joogab.yun@samsung.com>
Fri, 27 Dec 2019 08:29:49 +0000 (17:29 +0900)
This reverts commit 240419948efd34ee9c60370d8495296c2a25d884.

dali/devel-api/adaptor-framework/file-loader.cpp
dali/devel-api/adaptor-framework/file-loader.h
dali/internal/adaptor-framework/generic/file-loader-impl-generic.cpp

index c567456..b63b5c7 100644 (file)
 
 // INTERNAL INCLUDES
 #include <dali/internal/adaptor-framework/common/file-loader-impl.h>
-#include <dali/internal/imaging/common/file-download.h>
 
 namespace Dali
 {
 
-namespace
-{
-
-// limit maximum image down load size to 50 MB
-const size_t MAXIMUM_DOWNLOAD_IMAGE_SIZE  = 50 * 1024 * 1024 ;
-
-}
-
 namespace FileLoader
 {
 
@@ -54,12 +45,6 @@ std::streampos GetFileSize(const std::string& filename)
   return Dali::Internal::Adaptor::GetFileSize(filename);
 }
 
-bool DownloadFileSynchronously(const std::string& filename, Dali::Vector<uint8_t> &dataBuffer)
-{
-  size_t dataSize;
-  return TizenPlatform::Network::DownloadRemoteFileIntoMemory( filename, dataBuffer, dataSize, MAXIMUM_DOWNLOAD_IMAGE_SIZE );
-}
-
 } //FileLoader
 
 } //Dali
index a658952..7b158a9 100644 (file)
@@ -70,17 +70,6 @@ DALI_ADAPTOR_API int ReadFile(const std::string& filename, std::streampos& fileS
  * @return the size of the file or 0 if file not found
  */
 DALI_ADAPTOR_API std::streampos GetFileSize(const std::string& filename);
-
-
-/**
- * @brief Download a requested file into a memory buffer.
- *
- * @param[in] filename  Filename of the file to download.
- * @param[out] dataBuffer  A memory buffer object to be written with downloaded file data.
- * @return error code. false - Error, true - Ok
- */
-DALI_ADAPTOR_API bool DownloadFileSynchronously(const std::string& filename, Dali::Vector<uint8_t> &dataBuffer);
-
 };
 
 } // Dali
index 0d5d190..45422e7 100644 (file)
@@ -73,7 +73,7 @@ int ReadFile(const std::string& filename, std::streampos& fileSize, Dali::Vector
   }
   else
   {
-    DALI_LOG_WARNING( "file open failed for: \"%s\"", filename.c_str() );
+    DALI_LOG_WARNING( "file open failed for: \"%s\"", filename );
   }
 
   return errorCode;