Changeset 12172


Ignore:
Timestamp:
Mar 16, 2011, 3:17:26 AM (11 years ago)
Author:
jordan
Message:

(trunk libT) remove unused code from inout.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/inout.c

    r12076 r12172  
    1111 */
    1212
    13 #ifdef HAVE_LSEEK64
    14  #define _LARGEFILE64_SOURCE
    15 #endif
    16 
    1713#include <assert.h>
    1814#include <errno.h>
     
    3228#include "inout.h"
    3329#include "peer-common.h" /* MAX_BLOCK_SIZE */
    34 #include "platform.h"
    3530#include "stats.h"
    3631#include "torrent.h"
     
    4035*****  Low-level IO functions
    4136****/
    42 
    43 #ifdef WIN32
    44  #if defined(read)
    45   #undef read
    46  #endif
    47  #define read  _read
    48 
    49  #if defined(write)
    50   #undef write
    51  #endif
    52  #define write _write
    53 #endif
    5437
    5538enum { TR_IO_READ, TR_IO_PREFETCH,
     
    7457    int             err = 0;
    7558    const tr_bool doWrite = ioMode >= TR_IO_WRITE;
    76 
    77 //if( doWrite )
    78 //    fprintf( stderr, "in file %s at offset %zu, writing %zu bytes; file length is %zu\n", file->name, (size_t)fileOffset, buflen, (size_t)file->length );
    7959
    8060    assert( fileIndex < info->fileCount );
     
    235215    if( pieceIndex >= tor->info.pieceCount )
    236216        return EINVAL;
    237     //if( pieceOffset + buflen > tr_torPieceCountBytes( tor, pieceIndex ) )
    238     //    return EINVAL;
    239217
    240218    tr_ioFindFileLocation( tor, pieceIndex, pieceOffset,
     
    249227        buf += bytesThisPass;
    250228        buflen -= bytesThisPass;
    251 //fprintf( stderr, "++fileIndex to %d\n", (int)fileIndex );
    252229        ++fileIndex;
    253230        fileOffset = 0;
Note: See TracChangeset for help on using the changeset viewer.