diff --git a/JGE/include/Downloader.h b/JGE/include/Downloader.h index 0d0d81678..e9ff44919 100644 --- a/JGE/include/Downloader.h +++ b/JGE/include/Downloader.h @@ -102,7 +102,6 @@ public: totalSize = mTotalSize; currentSize = mCurrentSize; }; - void waitUntilCompleted(); friend ostream& operator<<(ostream& out, const DownloadRequest& d); friend istream& operator>>(istream&, DownloadRequest&); diff --git a/JGE/src/Downloader.cpp b/JGE/src/Downloader.cpp index 468072e92..4499d6c5f 100644 --- a/JGE/src/Downloader.cpp +++ b/JGE/src/Downloader.cpp @@ -89,19 +89,6 @@ void DownloadRequest::onProgressCb(unsigned int handle, DownloadRequest* req, in } #endif -void DownloadRequest::waitUntilCompleted() -{ - while(mDownloadStatus != DownloadRequest::DOWNLOAD_ERROR && mDownloadStatus != DownloadRequest::DOWNLOADED ) - { -#ifdef __EMSCRIPTERN - emscripten_sleep_with_yield(100) -#else - sleep(100); -#endif - DebugTrace("DownloadRequest::waitUntilCompleted"); - } -} - void DownloadRequest::processError(int errorCode, const char* errorText) { DebugTrace(errorText);