From 22c994e899159035127102e98f645999530d9118 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Tue, 28 May 2024 15:01:05 +0200 Subject: Remove unused code --- test/buildtool/storage/large_object_cas.test.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'test/buildtool/storage') diff --git a/test/buildtool/storage/large_object_cas.test.cpp b/test/buildtool/storage/large_object_cas.test.cpp index 10414748..0a62932a 100644 --- a/test/buildtool/storage/large_object_cas.test.cpp +++ b/test/buildtool/storage/large_object_cas.test.cpp @@ -703,13 +703,16 @@ auto Tree::StoreRaw(LocalCAS const& cas, return std::nullopt; } - auto store_blob = [&cas](auto const& path, auto is_exec) { - return cas.StoreBlob(path, is_exec); + auto store_blob = [&cas](std::filesystem::path const& path, + auto is_exec) -> std::optional { + return cas.StoreBlob(path, is_exec); }; - auto store_tree = [&cas](auto const& bytes, auto const& /*dir*/) { - return cas.StoreTree(bytes); + auto store_tree = + [&cas](std::string const& content) -> std::optional { + return cas.StoreTree(content); }; - auto store_symlink = [&cas](auto const& content) { + auto store_symlink = + [&cas](std::string const& content) -> std::optional { return cas.StoreBlob(content); }; -- cgit v1.2.3