Skip to content

Commit 08192ce

Browse files
committed
move include from mapcache.h to cache_redis.c and comment cleanup
1 parent 7195135 commit 08192ce

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

include/mapcache.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,6 @@
5151
#include <apr_time.h>
5252

5353

54-
#ifdef USE_REDIS
55-
#include <hiredis/hiredis.h>
56-
#endif
57-
5854
#define MAPCACHE_SUCCESS 0
5955
#define MAPCACHE_FAILURE 1
6056
#define MAPCACHE_TRUE 1

lib/cache_redis.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
#include "mapcache.h"
3232
#ifdef USE_REDIS
3333

34+
#include <hiredis/hiredis.h>
3435
#include <apr_strings.h>
3536
#include <limits.h>
3637
#include <errno.h>
@@ -90,14 +91,6 @@ static mapcache_pooled_connection* _redis_get_connection(mapcache_context *ctx,
9091
mapcache_redis_connection_destructor, &params);
9192

9293
return pc;
93-
94-
// redisContext *conn;
95-
// conn = redisConnect(cache->host, cache->port);
96-
// if (!conn || conn->err) {
97-
// ctx->set_error(ctx,500, "redis: failed to connect to server %s:%d", cache->host, cache->port);
98-
// return NULL;
99-
// }
100-
// return conn;
10194
}
10295

10396
static int _mapcache_cache_redis_has_tile(mapcache_context *ctx, mapcache_cache *pcache, mapcache_tile *tile) {

0 commit comments

Comments
 (0)