Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(347)

Unified Diff: net/spdy/spdy_frame_builder.h

Issue 11782024: Remove unused methods from SpdyFrameBuilder. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698