summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-06-07 18:20:28 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-07-04 16:19:39 +0200
commitef1e4be2b749dc62c7823bc7cdc5dbc2bd66dd31 (patch)
tree80a0831b0a8033e5cf798261b07538d40d8f2229
parentc2f7ead468d5e65c57e7ecb49d7fbba4254c46b7 (diff)
downloadjustbuild-ef1e4be2b749dc62c7823bc7cdc5dbc2bd66dd31.tar.gz
Remove default arguments that are always passed anyway.
-rw-r--r--src/buildtool/main/build_utils.hpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/buildtool/main/build_utils.hpp b/src/buildtool/main/build_utils.hpp
index 961b5c09..2ea69025 100644
--- a/src/buildtool/main/build_utils.hpp
+++ b/src/buildtool/main/build_utils.hpp
@@ -34,7 +34,6 @@
#include "src/buildtool/logging/log_level.hpp"
#include "src/buildtool/logging/logger.hpp"
#include "src/buildtool/multithreading/async_map_consumer.hpp"
-#include "src/buildtool/storage/storage.hpp"
#include "src/buildtool/storage/target_cache.hpp"
#endif // BOOTSTRAP_BUILD_TOOL
@@ -71,9 +70,8 @@ using TargetCacheWriterMap =
extra_infos,
std::size_t jobs,
gsl::not_null<ApiBundle const*> const& apis,
- TargetCacheWriteStrategy strategy = TargetCacheWriteStrategy::Sync,
- TargetCache<true> const& tc = Storage::Instance().TargetCache())
- -> TargetCacheWriterMap;
+ TargetCacheWriteStrategy strategy,
+ TargetCache<true> const& tc) -> TargetCacheWriterMap;
// use explicit cast to std::function to allow template deduction when used
static const std::function<std::string(Artifact::ObjectInfo const&)>
@@ -89,8 +87,8 @@ void WriteTargetCacheEntries(
extra_infos,
std::size_t jobs,
ApiBundle const& apis,
- TargetCacheWriteStrategy strategy = TargetCacheWriteStrategy::Sync,
- TargetCache<true> const& tc = Storage::Instance().TargetCache(),
+ TargetCacheWriteStrategy strategy,
+ TargetCache<true> const& tc,
Logger const* logger = nullptr,
LogLevel log_level = LogLevel::Warning);
#endif // BOOTSTRAP_BUILD_TOOL