Skip to content

Commit

Permalink
src: remove unused #include statement
Browse files Browse the repository at this point in the history
strcasecmp() is not used in src/node_http_parser.cc so there is no need
to include its header file.

PR-URL: #6582
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
bnoordhuis authored and Myles Borins committed Jul 12, 2016
1 parent ad64d41 commit 2db5c6a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/node_http_parser.cc
Expand Up @@ -16,12 +16,6 @@
#include <stdlib.h> // free()
#include <string.h> // strdup()

#if defined(_MSC_VER)
#define strcasecmp _stricmp
#else
#include <strings.h> // strcasecmp()
#endif

// This is a binding to http_parser (https://github.com/joyent/http-parser)
// The goal is to decouple sockets from parsing for more javascript-level
// agility. A Buffer is read from a socket and passed to parser.execute().
Expand Down

0 comments on commit 2db5c6a

Please sign in to comment.