Changed: Removed useless commented code
--HG-- branch : develop
This commit is contained in:
parent
e583a7a970
commit
a0f8660d0d
1 changed files with 0 additions and 3 deletions
|
@ -1592,15 +1592,12 @@ void CPatchManager::applyDate (const string &sFilename, uint32 nDate)
|
||||||
// change the file time
|
// change the file time
|
||||||
if(nDate != 0)
|
if(nDate != 0)
|
||||||
{
|
{
|
||||||
// _utimbuf utb;
|
|
||||||
// utb.actime = utb.modtime = nDate;
|
|
||||||
setRWAccess(sFilename, false);
|
setRWAccess(sFilename, false);
|
||||||
ucstring s = CI18N::get("uiChangeDate") + " " + NLMISC::CFile::getFilename(sFilename) + " " + timestampToHumanReadable(NLMISC::CFile::getFileModificationDate (sFilename)) +
|
ucstring s = CI18N::get("uiChangeDate") + " " + NLMISC::CFile::getFilename(sFilename) + " " + timestampToHumanReadable(NLMISC::CFile::getFileModificationDate (sFilename)) +
|
||||||
" -> " + timestampToHumanReadable(nDate);
|
" -> " + timestampToHumanReadable(nDate);
|
||||||
setState(true,s);
|
setState(true,s);
|
||||||
|
|
||||||
if (!NLMISC::CFile::setFileModificationDate(sFilename, nDate))
|
if (!NLMISC::CFile::setFileModificationDate(sFilename, nDate))
|
||||||
// if (_utime (sFilename.c_str (), &utb) == -1)
|
|
||||||
{
|
{
|
||||||
int err = NLMISC::getLastError();
|
int err = NLMISC::getLastError();
|
||||||
s = CI18N::get("uiChgDateErr") + " " + CFile::getFilename(sFilename) + " (" + toString(err) + ", " + formatErrorMessage(err) + ")";
|
s = CI18N::get("uiChgDateErr") + " " + CFile::getFilename(sFilename) + " (" + toString(err) + ", " + formatErrorMessage(err) + ")";
|
||||||
|
|
Loading…
Reference in a new issue