nghttpx: Remove unused member function and variable
This commit is contained in:
parent
9893ae81af
commit
d5da7611fa
|
@ -434,8 +434,7 @@ uint32_t infer_upstream_rst_stream_status_code(int downstream_error_code)
|
|||
|
||||
SpdyUpstream::SpdyUpstream(uint16_t version, ClientHandler *handler)
|
||||
: handler_(handler),
|
||||
session_(nullptr),
|
||||
recv_ign_window_size_(0)
|
||||
session_(nullptr)
|
||||
{
|
||||
//handler->set_bev_cb(spdy_readcb, 0, spdy_eventcb);
|
||||
handler->set_upstream_timeouts(&get_config()->http2_upstream_read_timeout,
|
||||
|
@ -776,28 +775,6 @@ int SpdyUpstream::rst_stream(Downstream *downstream, int status_code)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int SpdyUpstream::window_update(Downstream *downstream, int32_t delta)
|
||||
{
|
||||
int rv;
|
||||
int32_t stream_id;
|
||||
|
||||
if(downstream) {
|
||||
stream_id = downstream->get_stream_id();
|
||||
} else {
|
||||
stream_id = 0;
|
||||
recv_ign_window_size_ = 0;
|
||||
}
|
||||
|
||||
rv = spdylay_submit_window_update(session_, stream_id, delta);
|
||||
|
||||
if(rv < SPDYLAY_ERR_FATAL) {
|
||||
ULOG(FATAL, this) << "spdylay_submit_window_update() failed: "
|
||||
<< spdylay_strerror(rv);
|
||||
DIE();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
namespace {
|
||||
ssize_t spdy_data_read_callback(spdylay_session *session,
|
||||
int32_t stream_id,
|
||||
|
|
|
@ -61,7 +61,6 @@ public:
|
|||
spdylay_session* get_http2_session();
|
||||
|
||||
int rst_stream(Downstream *downstream, int status_code);
|
||||
int window_update(Downstream *downstream, int32_t delta);
|
||||
int error_reply(Downstream *downstream, unsigned int status_code);
|
||||
|
||||
virtual void pause_read(IOCtrlReason reason);
|
||||
|
@ -86,7 +85,6 @@ private:
|
|||
ClientHandler *handler_;
|
||||
spdylay_session *session_;
|
||||
int32_t initial_window_size_;
|
||||
int32_t recv_ign_window_size_;
|
||||
bool flow_control_;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue