summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/common/execution_api.hpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-06-03 15:38:53 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-06-07 11:53:52 +0200
commitb9147ac25ad5b398f928a2bbc39b9124e9626bf3 (patch)
treecc84e1e98cfe8ad98831e5da62fe592c413e3d4b /src/buildtool/execution_api/common/execution_api.hpp
parent14bbf74ab66e9926f0f606c08b04f83b3c379b37 (diff)
downloadjustbuild-b9147ac25ad5b398f928a2bbc39b9124e9626bf3.tar.gz
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.
Diffstat (limited to 'src/buildtool/execution_api/common/execution_api.hpp')
-rw-r--r--src/buildtool/execution_api/common/execution_api.hpp7
1 files changed, 0 insertions, 7 deletions
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<DependencyGraph::NamedArtifactNodePtr> const&
artifacts) noexcept -> std::optional<ArtifactDigest> = 0;