From 0ce7381ff9a98c9abd357cd28f053af937a1e5f5 Mon Sep 17 00:00:00 2001
From: Vladimir Davydov <vdavydov.dev@gmail.com>
Date: Sun, 1 Apr 2018 09:12:56 +0300
Subject: [PATCH] vinyl: zap vy_mem_update_formats

A piece of code left from the inglorious past, which doesn't even have
a forward declaration, let alone used anywhere. Remove it.
---
 src/box/vy_mem.c | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/src/box/vy_mem.c b/src/box/vy_mem.c
index 68abf5bcdf..9aaabf0b3e 100644
--- a/src/box/vy_mem.c
+++ b/src/box/vy_mem.c
@@ -123,19 +123,6 @@ vy_mem_new(struct vy_mem_env *env, int64_t generation,
 	return index;
 }
 
-void
-vy_mem_update_formats(struct vy_mem *mem, struct tuple_format *new_format,
-		      struct tuple_format *new_format_with_colmask)
-{
-	assert(mem->count.rows == 0);
-	tuple_format_unref(mem->format);
-	tuple_format_unref(mem->format_with_colmask);
-	mem->format = new_format;
-	mem->format_with_colmask = new_format_with_colmask;
-	tuple_format_ref(mem->format);
-	tuple_format_ref(mem->format_with_colmask);
-}
-
 void
 vy_mem_delete(struct vy_mem *index)
 {
-- 
GitLab