| Index: net/spdy/spdy_frame_builder.h
|
| diff --git a/net/spdy/spdy_frame_builder.h b/net/spdy/spdy_frame_builder.h
|
| index 74cafbe0008cf15a974fa77081b45f774cd7cc02..e3f3a25fb8e40ad02093f316645c77673c0335ad 100644
|
| --- a/net/spdy/spdy_frame_builder.h
|
| +++ b/net/spdy/spdy_frame_builder.h
|
| @@ -86,27 +86,7 @@ class NET_EXPORT_PRIVATE SpdyFrameBuilder {
|
| return true;
|
| }
|
|
|
| - // Returns true if the given iterator could point to data with the given
|
| - // length. If there is no room for the given data before the end of the
|
| - // payload, returns false.
|
| - bool IteratorHasRoomFor(const void* iter, int len) const {
|
| - const char* end_of_region = reinterpret_cast<const char*>(iter) + len;
|
| - if (len < 0 ||
|
| - iter < buffer_ ||
|
| - iter > end_of_payload() ||
|
| - iter > end_of_region ||
|
| - end_of_region > end_of_payload())
|
| - return false;
|
| -
|
| - // Watch out for overflow in pointer calculation, which wraps.
|
| - return (iter <= end_of_region) && (end_of_region <= end_of_payload());
|
| - }
|
| -
|
| protected:
|
| - size_t capacity() const {
|
| - return capacity_;
|
| - }
|
| -
|
| const char* end_of_payload() const { return buffer_ + length_; }
|
|
|
| // Completes the write operation by padding the data with NULL bytes until it
|
| @@ -114,11 +94,6 @@ class NET_EXPORT_PRIVATE SpdyFrameBuilder {
|
| // have to be called after the data is written.
|
| void EndWrite(char* dest, int length);
|
|
|
| - // Moves the iterator by the given number of bytes.
|
| - static void UpdateIter(void** iter, int bytes) {
|
| - *iter = static_cast<char*>(*iter) + bytes;
|
| - }
|
| -
|
| private:
|
| // Returns the location that the data should be written at, or NULL if there
|
| // is not enough room. Call EndWrite with the returned offset and the given
|
|
|