<HTML><BODY><div>LGTM.</div><div> </div><div> </div><blockquote style="border-left:1px solid #0857A6; margin:10px; padding:0 0 0 10px;">Четверг, 20 августа 2020, 0:36 +03:00 от Cyrill Gorcunov <gorcunov@gmail.com>:<br> <div id=""><div class="js-helper js-readmsg-msg"><style type="text/css"></style><div><div id="style_15978729840605234005_BODY">We no longer use it.<br><br>Closes #5129<br><br>Signed-off-by: Cyrill Gorcunov <<a href="/compose?To=gorcunov@gmail.com">gorcunov@gmail.com</a>><br>---<br> src/box/xrow.c | 15 ---------------<br> src/box/xrow.h | 8 --------<br> 2 files changed, 23 deletions(-)<br><br>diff --git a/src/box/xrow.c b/src/box/xrow.c<br>index 9c6fb4fc1..95ddb1fe7 100644<br>--- a/src/box/xrow.c<br>+++ b/src/box/xrow.c<br>@@ -220,21 +220,6 @@ xrow_header_decode(struct xrow_header *header, const char **pos,<br> return 0;<br> }<br> <br>-int<br>-xrow_header_dup_body(struct xrow_header *row, struct region *region)<br>-{<br>- assert(row->bodycnt == 1);<br>- size_t size = row->body[0].iov_len;<br>- char *copy = (char *)region_alloc(region, size);<br>- if (copy == NULL) {<br>- diag_set(OutOfMemory, size, "region_alloc", "copy");<br>- return -1;<br>- }<br>- memcpy(copy, row->body[0].iov_base, size);<br>- row->body[0].iov_base = copy;<br>- return 1;<br>-}<br>-<br> /**<br> * @pre pos points at a valid msgpack<br> */<br>diff --git a/src/box/xrow.h b/src/box/xrow.h<br>index 20e82034d..58d47b12d 100644<br>--- a/src/box/xrow.h<br>+++ b/src/box/xrow.h<br>@@ -141,14 +141,6 @@ int<br> xrow_header_decode(struct xrow_header *header, const char **pos,<br> const char *end, bool end_is_exact);<br> <br>-/**<br>- * Duplicate the xrow's body onto the given region.<br>- * @retval -1 Error.<br>- * @retval >= 0 Iov count in the body.<br>- */<br>-int<br>-xrow_header_dup_body(struct xrow_header *header, struct region *region);<br>-<br> /**<br> * DML request.<br> */<br>--<br>2.26.2<br> </div></div></div></div></blockquote><div> </div><div>--<br>Serge Petrenko</div></BODY></HTML>