about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--ext/unicorn/http11/http11.c3
-rw-r--r--ext/unicorn/http11/http11_parser.h4
2 files changed, 0 insertions, 7 deletions
diff --git a/ext/unicorn/http11/http11.c b/ext/unicorn/http11/http11.c
index 82982e7..bd22274 100644
--- a/ext/unicorn/http11/http11.c
+++ b/ext/unicorn/http11/http11.c
@@ -19,7 +19,6 @@ static VALUE mUnicorn;
 static VALUE cHttpParser;
 static VALUE eHttpParserError;
 
-#define id_handler_map rb_intern("@handler_map")
 #define HTTP_PREFIX "HTTP_"
 #define HTTP_PREFIX_LEN (sizeof(HTTP_PREFIX) - 1)
 
@@ -44,8 +43,6 @@ static VALUE global_http_host;
 static VALUE global_port_80;
 static VALUE global_localhost;
 
-#define TRIE_INCREASE 30
-
 /** Defines common length and error messages for input length validation. */
 #define DEF_MAX_LENGTH(N,length) const size_t MAX_##N##_LENGTH = length; const char *MAX_##N##_LENGTH_ERR = "HTTP element " # N  " is longer than the " # length " allowed length."
 
diff --git a/ext/unicorn/http11/http11_parser.h b/ext/unicorn/http11/http11_parser.h
index 8d074ba..c96b3a0 100644
--- a/ext/unicorn/http11/http11_parser.h
+++ b/ext/unicorn/http11/http11_parser.h
@@ -8,10 +8,6 @@
 
 #include <sys/types.h>
 
-#if defined(_WIN32)
-#include <stddef.h>
-#endif
-
 typedef void (*element_cb)(void *data, const char *at, size_t length);
 typedef void (*field_cb)(void *data, const char *field, size_t flen, const char *value, size_t vlen);