From b9147ac25ad5b398f928a2bbc39b9124e9626bf3 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Mon, 3 Jun 2024 15:38:53 +0200 Subject: Remove unused code. IExecutionApi::UploadFile was introduced to handle adding of a temporary file to the storage. The call was redirected to LocalCAS internal methods that do the similar thing, so this virtual method can be removed. --- src/buildtool/execution_api/common/execution_api.hpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/buildtool/execution_api/common/execution_api.hpp') diff --git a/src/buildtool/execution_api/common/execution_api.hpp b/src/buildtool/execution_api/common/execution_api.hpp index 42554a48..a4892258 100644 --- a/src/buildtool/execution_api/common/execution_api.hpp +++ b/src/buildtool/execution_api/common/execution_api.hpp @@ -29,7 +29,6 @@ #include "src/buildtool/execution_api/common/artifact_blob_container.hpp" #include "src/buildtool/execution_api/common/execution_action.hpp" #include "src/buildtool/execution_engine/dag/dag.hpp" -#include "src/buildtool/file_system/object_type.hpp" /// \brief Abstract remote execution API /// Can be used to create actions. @@ -120,12 +119,6 @@ class IExecutionApi { bool skip_find_missing = false) noexcept -> bool = 0; - /// \brief Upload a file to CAS as an object of the specified type. - /// It may be assumed that the file is owned entirely by the build process. - [[nodiscard]] virtual auto UploadFile( - std::filesystem::path const& file_path, - ObjectType type) noexcept -> bool; - [[nodiscard]] virtual auto UploadTree( std::vector const& artifacts) noexcept -> std::optional = 0; -- cgit v1.2.3