Skip to content

Commit

Permalink
prune a now unused parameter (tanks' @agentdero)
Browse files Browse the repository at this point in the history
  • Loading branch information
lloyd committed Dec 17, 2009
1 parent f02de67 commit 0267389
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/yajl.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ yajl_parse(yajl_handle hand, const unsigned char * jsonText,
unsigned int jsonTextLen)
{
yajl_status status;
status = yajl_do_parse(hand, 0, jsonText, jsonTextLen);
status = yajl_do_parse(hand, jsonText, jsonTextLen);
return status;
}

Expand Down
6 changes: 3 additions & 3 deletions src/yajl_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,15 +136,15 @@ yajl_render_error_string(yajl_handle hand, const unsigned char * jsonText,


yajl_status
yajl_do_parse(yajl_handle hand, unsigned int offsetStart,
const unsigned char * jsonText, unsigned int jsonTextLen)
yajl_do_parse(yajl_handle hand, const unsigned char * jsonText,
unsigned int jsonTextLen)
{
yajl_tok tok;
const unsigned char * buf;
unsigned int bufLen;
unsigned int * offset = &(hand->bytesConsumed);

*offset = offsetStart;
*offset = 0;


around_again:
Expand Down
4 changes: 2 additions & 2 deletions src/yajl_parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ struct yajl_handle_t {
};

yajl_status
yajl_do_parse(yajl_handle handle, unsigned int offset,
const unsigned char * jsonText, unsigned int jsonTextLen);
yajl_do_parse(yajl_handle handle, const unsigned char * jsonText,
unsigned int jsonTextLen);

unsigned char *
yajl_render_error_string(yajl_handle hand, const unsigned char * jsonText,
Expand Down

0 comments on commit 0267389

Please sign in to comment.