From 95f2c00c71cff5c0b649f635185c3845773e763e Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 21 Jun 2015 17:17:40 +0900 Subject: [PATCH] Remove unused macros defined in util.h --- src/util.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/util.h b/src/util.h index 16813baf..6f681650 100644 --- a/src/util.h +++ b/src/util.h @@ -81,14 +81,6 @@ class FileEntry; class RequestGroup; class Option; -#define STRTOLL(X) strtoll(X, reinterpret_cast(0), 10) -#define STRTOULL(X) strtoull(X, reinterpret_cast(0), 10) - -#define START_INDEX(OFFSET, PIECE_LENGTH) ((OFFSET)/(PIECE_LENGTH)) -#define END_INDEX(OFFSET, LENGTH, PIECE_LENGTH) (((OFFSET)+(LENGTH)-1)/(PIECE_LENGTH)) - -#define DIV_FLOOR(X,Y) ((X)/(Y)+((X)%(Y)? 1:0)) - #ifdef WORDS_BIGENDIAN inline uint64_t ntoh64(uint64_t x) { return x; } inline uint64_t hton64(uint64_t x) { return x; }