summaryrefslogtreecommitdiff
path: root/src/modules/srfile/file.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-05-18 23:20:51 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-05-18 23:20:51 +0000
commit7a2c6126cd995cfdbd5f3167609cd7e09ffacf35 (patch)
tree5abf4493f0b3bb435c5604fbdba453acfcc1e066 /src/modules/srfile/file.cpp
parent7984eb187eec59c96ce661e85575ee2cbf5b386e (diff)
useless junk removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@66 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/srfile/file.cpp')
-rw-r--r--src/modules/srfile/file.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/modules/srfile/file.cpp b/src/modules/srfile/file.cpp
index 85eb99a7bc..37f7d15a1f 100644
--- a/src/modules/srfile/file.cpp
+++ b/src/modules/srfile/file.cpp
@@ -208,26 +208,6 @@ void CopyProtoFileTransferStatus(PROTOFILETRANSFERSTATUS *dest, PROTOFILETRANSFE
void UpdateProtoFileTransferStatus(PROTOFILETRANSFERSTATUS *dest, PROTOFILETRANSFERSTATUS *src)
{
- if (src->cbSize == sizeof(PROTOFILETRANSFERSTATUS_V1))
- {
- PROTOFILETRANSFERSTATUS_V1 *src1 = (PROTOFILETRANSFERSTATUS_V1*)src;
- src = (PROTOFILETRANSFERSTATUS*)alloca(sizeof(PROTOFILETRANSFERSTATUS));
-
- src->cbSize = sizeof(PROTOFILETRANSFERSTATUS);
- src->hContact = src1->hContact;
- src->flags = src1->sending ? PFTS_SENDING : 0;
- src->pszFiles = src1->files;
- src->totalFiles = src1->totalFiles;
- src->currentFileNumber = src1->currentFileNumber;
- src->totalBytes = src1->totalBytes;
- src->totalProgress = src1->totalProgress;
- src->szWorkingDir = src1->workingDir;
- src->szCurrentFile = src1->currentFile;
- src->currentFileSize = src1->currentFileSize;
- src->currentFileProgress = src1->currentFileProgress;
- src->currentFileTime = src1->currentFileTime;
- }
-
dest->hContact = src->hContact;
dest->flags = src->flags;
if ( dest->totalFiles != src->totalFiles ) {