summaryrefslogtreecommitdiffstats
path: root/net/spdy
diff options
context:
space:
mode:
authorbnc <bnc@chromium.org>2015-03-09 09:09:19 -0700
committerCommit bot <commit-bot@chromium.org>2015-03-09 16:09:47 +0000
commita55ac9adc57e89c089e710231cfe476adfc66e34 (patch)
treed9419e399454663a07257808f3b8cde8b0fb2ecc /net/spdy
parent34483e90726bc4537a746e2b49f3f47a2991a88f (diff)
downloadchromium_src-a55ac9adc57e89c089e710231cfe476adfc66e34.zip
chromium_src-a55ac9adc57e89c089e710231cfe476adfc66e34.tar.gz
chromium_src-a55ac9adc57e89c089e710231cfe476adfc66e34.tar.bz2
Remove some dead code.
This CL lands server change 87003629 by tgreer and change 87977978 by birenroy. BUG= Review URL: https://codereview.chromium.org/980393003 Cr-Commit-Position: refs/heads/master@{#319646}
Diffstat (limited to 'net/spdy')
-rw-r--r--net/spdy/hpack_encoder_test.cc6
-rw-r--r--net/spdy/hpack_huffman_table_test.cc27
-rw-r--r--net/spdy/spdy_framer.h5
-rw-r--r--net/spdy/spdy_protocol.h8
4 files changed, 0 insertions, 46 deletions
diff --git a/net/spdy/hpack_encoder_test.cc b/net/spdy/hpack_encoder_test.cc
index 40e6c20..43acfc4 100644
--- a/net/spdy/hpack_encoder_test.cc
+++ b/net/spdy/hpack_encoder_test.cc
@@ -45,9 +45,6 @@ class HpackEncoderPeer {
HpackHeaderTablePeer table_peer() {
return HpackHeaderTablePeer(table());
}
- bool allow_huffman_compression() {
- return encoder_->allow_huffman_compression_;
- }
void set_allow_huffman_compression(bool allow) {
encoder_->allow_huffman_compression_ = allow;
}
@@ -154,9 +151,6 @@ class HpackEncoderTest : public ::testing::Test {
EXPECT_TRUE(encoder_.EncodeHeaderSet(header_set, &actual_out));
EXPECT_EQ(expected_out, actual_out);
}
- size_t IndexOf(HpackEntry* entry) {
- return peer_.table()->IndexOf(entry);
- }
size_t IndexOf(const HpackEntry* entry) {
return peer_.table()->IndexOf(entry);
}
diff --git a/net/spdy/hpack_huffman_table_test.cc b/net/spdy/hpack_huffman_table_test.cc
index b1da6a8..6a91149 100644
--- a/net/spdy/hpack_huffman_table_test.cc
+++ b/net/spdy/hpack_huffman_table_test.cc
@@ -18,7 +18,6 @@
using base::StringPiece;
using net::test::a2b_hex;
using std::string;
-using testing::ElementsAre;
using testing::ElementsAreArray;
using testing::Pointwise;
@@ -55,32 +54,6 @@ class HpackHuffmanTablePeer {
table_.decode_entries_.begin() + decode_table.entries_offset;
return std::vector<DecodeEntry>(begin, begin + decode_table.size());
}
- void DumpDecodeTable(const DecodeTable& table) {
- std::vector<DecodeEntry> entries = decode_entries(table);
- LOG(INFO) << "Table size " << (1 << table.indexed_length)
- << " prefix " << unsigned(table.prefix_length)
- << " indexed " << unsigned(table.indexed_length);
- size_t i = 0;
- while (i != table.size()) {
- const DecodeEntry& entry = entries[i];
- LOG(INFO) << i << ":"
- << " next_table " << unsigned(entry.next_table_index)
- << " length " << unsigned(entry.length)
- << " symbol " << unsigned(entry.symbol_id);
- size_t j = 1;
- for (; (i + j) != table.size(); j++) {
- const DecodeEntry& next = entries[i + j];
- if (next.next_table_index != entry.next_table_index ||
- next.length != entry.length ||
- next.symbol_id != entry.symbol_id)
- break;
- }
- if (j > 1) {
- LOG(INFO) << " (repeats " << j << " times)";
- }
- i += j;
- }
- }
private:
const HpackHuffmanTable& table_;
diff --git a/net/spdy/spdy_framer.h b/net/spdy/spdy_framer.h
index cb78093..4bb0590 100644
--- a/net/spdy/spdy_framer.h
+++ b/net/spdy/spdy_framer.h
@@ -550,9 +550,6 @@ class NET_EXPORT_PRIVATE SpdyFramer {
// Returns the maximum size a frame can be (data or control).
size_t GetFrameMaximumSize() const;
- // Returns the maximum size that a control frame can be.
- size_t GetControlFrameMaximumSize() const;
-
// Returns the maximum payload size of a DATA frame.
size_t GetDataFrameMaximumPayload() const;
@@ -569,8 +566,6 @@ class NET_EXPORT_PRIVATE SpdyFramer {
bool probable_http_response() const { return probable_http_response_; }
- SpdyStreamId expect_continuation() const { return expect_continuation_; }
-
SpdyPriority GetLowestPriority() const {
return protocol_version_ < SPDY3 ? 3 : 7;
}
diff --git a/net/spdy/spdy_protocol.h b/net/spdy/spdy_protocol.h
index 80f46d7..0f37236 100644
--- a/net/spdy/spdy_protocol.h
+++ b/net/spdy/spdy_protocol.h
@@ -741,10 +741,6 @@ class NET_EXPORT_PRIVATE SpdyRstStreamIR : public SpdyFrameWithStreamIdIR {
base::StringPiece description() const { return description_; }
- void set_description(base::StringPiece description) {
- description_ = description;
- }
-
void Visit(SpdyFrameVisitor* visitor) const override;
private:
@@ -783,9 +779,6 @@ class NET_EXPORT_PRIVATE SpdySettingsIR : public SpdyFrameIR {
}
bool clear_settings() const { return clear_settings_; }
- void set_clear_settings(bool clear_settings) {
- clear_settings_ = clear_settings;
- }
bool is_ack() const { return is_ack_; }
void set_is_ack(bool is_ack) {
is_ack_ = is_ack;
@@ -927,7 +920,6 @@ class NET_EXPORT_PRIVATE SpdyPushPromiseIR
padded_(false),
padding_payload_len_(0) {}
SpdyStreamId promised_stream_id() const { return promised_stream_id_; }
- void set_promised_stream_id(SpdyStreamId id) { promised_stream_id_ = id; }
void Visit(SpdyFrameVisitor* visitor) const override;