Remove logs

This commit is contained in:
Oleg Korshul
2025-10-24 19:45:17 +03:00
parent e4825294ed
commit 170cada6e6
2 changed files with 6 additions and 15 deletions

View File

@ -33,7 +33,6 @@ HEADERS += \
./../DesktopEditor/graphics/TemporaryCS.h
SOURCES += \
../OdfFile/Common/logging.cpp \
./../DesktopEditor/graphics/TemporaryCS.cpp
# THREAD

View File

@ -33,7 +33,6 @@
#include "ZipUtilsCP.h"
#include "../../DesktopEditor/common/File.h"
#include "../../DesktopEditor/common/Directory.h"
#include "../../OdfFile/Common/logging.h"
#include <sstream>
COfficeUtils::COfficeUtils(OnProgressCallback* fCallback)
@ -50,12 +49,10 @@ HRESULT COfficeUtils::ExtractToDirectory(const std::wstring& _zipFile, const std
std::wstring zipFile = _zipFile;
std::wstring unzipDir = _unzipDir;
#endif
_CP_LOG << L"start unzip" << std::endl;
if( ZLibZipUtils::UnzipToDir( zipFile.c_str(), unzipDir.c_str(), m_fCallback, password, ( extract_without_path > 0 ) ? (true) : (false) ) == 0 )
{
_CP_LOG << L"end unzip" << std::endl;
return S_OK;
return S_OK;
}
else
{
@ -69,13 +66,11 @@ HRESULT COfficeUtils::ExtractToDirectory(BYTE* data, size_t len, const std::wstr
std::wstring unzipDir = CorrectPathW(_unzipDir);
#else
std::wstring unzipDir = _unzipDir;
#endif
_CP_LOG << L"start unzip" << std::endl;
#endif
if( ZLibZipUtils::UnzipToDir( data, len, unzipDir.c_str(), m_fCallback, password, ( extract_without_path > 0 ) ? (true) : (false) ) == 0 )
if( ZLibZipUtils::UnzipToDir( data, len, unzipDir.c_str(), m_fCallback, password, ( extract_without_path > 0 ) ? (true) : (false) ) == 0 )
{
_CP_LOG << L"end unzip" << std::endl;
return S_OK;
return S_OK;
}
else
{
@ -93,15 +88,13 @@ HRESULT COfficeUtils::CompressFileOrDirectory(const std::wstring& _name, const s
std::wstring name = _name;
std::wstring outputFile = _outputFile;
#endif
_CP_LOG << L"start zip" << std::endl;
HRESULT result = S_FALSE;
if(NSDirectory::Exists(name))
{
if ( ZLibZipUtils::ZipDir( name.c_str(), outputFile.c_str(), m_fCallback, bSorted, method, level, bDateTime ) == 0 )
{
_CP_LOG << L"end zip" << std::endl;
result = S_OK;
result = S_OK;
}
else
{
@ -112,8 +105,7 @@ HRESULT COfficeUtils::CompressFileOrDirectory(const std::wstring& _name, const s
{
if ( ZLibZipUtils::ZipFile( name.c_str(), outputFile.c_str(), method, level, bDateTime ) == 0 )
{
_CP_LOG << L"end zip" << std::endl;
result = S_OK;
result = S_OK;
}
else
{