Remove unnecessary construction of IOBuf in Cursor
authorStepan Palamarchuk <stepan@fb.com>
Mon, 25 Apr 2016 21:12:21 +0000 (14:12 -0700)
committerFacebook Github Bot 0 <facebook-github-bot-0-bot@fb.com>
Mon, 25 Apr 2016 21:20:30 +0000 (14:20 -0700)
commit57e517a56bd048c902be1c1e1a0655316a5189a4
tree580fe49869e46ab83d5d41be5fb6d9851a1b7ed5
parentdcac5e8d810f3e20e600daa0230670cb3ca3b3e4
Remove unnecessary construction of IOBuf in Cursor

Summary: This assignment is unnecessary, because in `for` loop we **always** call `cloneOneInto` that would assign another IOBuf to that IOBuf.

Reviewed By: alikhtarov

Differential Revision: D3215861

fb-gh-sync-id: ad87b99848aaae79f0870d49e0474f1abf0f28e5
fbshipit-source-id: ad87b99848aaae79f0870d49e0474f1abf0f28e5
folly/io/Cursor.h
folly/io/test/IOBufCursorBenchmark.cpp