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 14, 2016
1 parent f51dd31 commit 8463b7e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/node_http_parser.cc
Original file line number Diff line number Diff line change
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 8463b7e

Please sign in to comment.