[PATCH 07/12] vinyl: zap vy_mem_update_formats

Vladimir Davydov vdavydov.dev at gmail.com
Sun Apr 1 12:05:34 MSK 2018


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 68abf5bc..9aaabf0b 100644
--- a/src/box/vy_mem.c
+++ b/src/box/vy_mem.c
@@ -124,19 +124,6 @@ vy_mem_new(struct vy_mem_env *env, int64_t generation,
 }
 
 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)
 {
 	index->env->tree_extent_size -= index->tree_extent_size;
-- 
2.11.0




More information about the Tarantool-patches mailing list