Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
073e6d3a
Commit
073e6d3a
authored
Jan 17, 2014
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttp2_hd: Remove unused variables
parent
7048c565
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
29 deletions
+0
-29
lib/nghttp2_hd.c
lib/nghttp2_hd.c
+0
-7
lib/nghttp2_hd.h
lib/nghttp2_hd.h
+0
-22
No files found.
lib/nghttp2_hd.c
View file @
073e6d3a
...
@@ -303,11 +303,6 @@ static int nghttp2_hd_context_init(nghttp2_hd_context *context,
...
@@ -303,11 +303,6 @@ static int nghttp2_hd_context_init(nghttp2_hd_context *context,
return
rv
;
return
rv
;
}
}
context
->
emit_set
=
NULL
;
context
->
emit_set_capacity
=
0
;
context
->
buf_track
=
NULL
;
context
->
buf_track_capacity
=
0
;
context
->
ent_keep
=
NULL
;
context
->
ent_keep
=
NULL
;
context
->
name_keep
=
NULL
;
context
->
name_keep
=
NULL
;
context
->
value_keep
=
NULL
;
context
->
value_keep
=
NULL
;
...
@@ -316,8 +311,6 @@ static int nghttp2_hd_context_init(nghttp2_hd_context *context,
...
@@ -316,8 +311,6 @@ static int nghttp2_hd_context_init(nghttp2_hd_context *context,
context
->
deflate_hd_table_bufsize_max
=
deflate_hd_table_bufsize_max
;
context
->
deflate_hd_table_bufsize_max
=
deflate_hd_table_bufsize_max
;
context
->
deflate_hd_table_bufsize
=
0
;
context
->
deflate_hd_table_bufsize
=
0
;
context
->
deflate_hd_tablelen
=
0
;
context
->
deflate_hd_tablelen
=
0
;
context
->
emit_setlen
=
0
;
context
->
buf_tracklen
=
0
;
context
->
hd_table_bufsize
=
0
;
context
->
hd_table_bufsize
=
0
;
return
0
;
return
0
;
}
}
...
...
lib/nghttp2_hd.h
View file @
073e6d3a
...
@@ -31,15 +31,6 @@
...
@@ -31,15 +31,6 @@
#include <nghttp2/nghttp2.h>
#include <nghttp2/nghttp2.h>
#define NGHTTP2_MAX_EMIT_SET_LENGTH 256
#define NGHTTP2_INITIAL_EMIT_SET_LENGTH 32
#define NGHTTP2_MAX_BUF_TRACK_LENGTH 256
#define NGHTTP2_INITIAL_BUF_TRACK_LENGTH 32
#define NGHTTP2_MAX_NVA_LENGTH 256
#define NGHTTP2_INITIAL_NVA_LENGTH 32
#define NGHTTP2_HD_DEFAULT_MAX_BUFFER_SIZE (1 << 12)
#define NGHTTP2_HD_DEFAULT_MAX_BUFFER_SIZE (1 << 12)
#define NGHTTP2_HD_MAX_ENTRY_SIZE 3072
#define NGHTTP2_HD_MAX_ENTRY_SIZE 3072
#define NGHTTP2_HD_ENTRY_OVERHEAD 32
#define NGHTTP2_HD_ENTRY_OVERHEAD 32
...
@@ -103,11 +94,6 @@ typedef struct {
...
@@ -103,11 +94,6 @@ typedef struct {
typedef
struct
{
typedef
struct
{
/* dynamic header table */
/* dynamic header table */
nghttp2_hd_ringbuf
hd_table
;
nghttp2_hd_ringbuf
hd_table
;
/* Holding emitted entry in deflating header block to retain
reference count. */
nghttp2_hd_entry
**
emit_set
;
/* Keep track of allocated buffers in inflation */
uint8_t
**
buf_track
;
nghttp2_hd_entry
*
ent_keep
;
nghttp2_hd_entry
*
ent_keep
;
uint8_t
*
name_keep
,
*
value_keep
;
uint8_t
*
name_keep
,
*
value_keep
;
size_t
end_headers_index
;
size_t
end_headers_index
;
...
@@ -134,19 +120,11 @@ typedef struct {
...
@@ -134,19 +120,11 @@ typedef struct {
/* The number of effective entry in |hd_table|. This value is always
/* The number of effective entry in |hd_table|. This value is always
equal to hd_table.len on decoder side. */
equal to hd_table.len on decoder side. */
size_t
deflate_hd_tablelen
;
size_t
deflate_hd_tablelen
;
/* The number of entry the |buf_track| contains. */
size_t
buf_tracklen
;
/* Role of this context; deflate or infalte */
/* Role of this context; deflate or infalte */
nghttp2_hd_role
role
;
nghttp2_hd_role
role
;
/* NGHTTP2_HD_SIDE_REQUEST for processing request, otherwise
/* NGHTTP2_HD_SIDE_REQUEST for processing request, otherwise
response. */
response. */
nghttp2_hd_side
side
;
nghttp2_hd_side
side
;
/* The capacity of the |emit_set| */
uint16_t
emit_set_capacity
;
/* The number of entry the |emit_set| contains */
uint16_t
emit_setlen
;
/* The capacity of |buf_track| */
uint16_t
buf_track_capacity
;
/* If inflate/deflate error occurred, this value is set to 1 and
/* If inflate/deflate error occurred, this value is set to 1 and
further invocation of inflate/deflate will fail with
further invocation of inflate/deflate will fail with
NGHTTP2_ERR_HEADER_COMP. */
NGHTTP2_ERR_HEADER_COMP. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment