From 6d69b1297a92810dc9224b35a1f1ec098a159e84 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Tue, 21 Jan 2025 16:38:52 +0100 Subject: JustMr: ContentGitMap: Remove unused arguments. --- src/other_tools/root_maps/content_git_map.cpp | 105 -------------------------- 1 file changed, 105 deletions(-) (limited to 'src/other_tools/root_maps/content_git_map.cpp') diff --git a/src/other_tools/root_maps/content_git_map.cpp b/src/other_tools/root_maps/content_git_map.cpp index 717ce065..3e5dc3e0 100644 --- a/src/other_tools/root_maps/content_git_map.cpp +++ b/src/other_tools/root_maps/content_git_map.cpp @@ -68,9 +68,6 @@ void EnsureRootAsAbsent( ArchiveRepoInfo const& key, ServeApi const* serve, gsl::not_null const& native_storage_config, - StorageConfig const* /*compat_storage_config*/, - IExecutionApi const* /*local_api*/, - IExecutionApi const* /*remote_api*/, bool is_cache_hit, ContentGitMap::SetterPtr const& ws_setter, ContentGitMap::LoggerPtr const& logger) { @@ -166,9 +163,6 @@ void ResolveContentTree( bool is_absent, ServeApi const* serve, gsl::not_null const& native_storage_config, - StorageConfig const* compat_storage_config, - IExecutionApi const* local_api, - IExecutionApi const* remote_api, gsl::not_null const& critical_git_op_map, gsl::not_null const& resolve_symlinks_map, gsl::not_null const& ts, @@ -194,9 +188,6 @@ void ResolveContentTree( key, serve, native_storage_config, - compat_storage_config, - local_api, - remote_api, is_cache_hit, ws_setter, logger); @@ -228,9 +219,6 @@ void ResolveContentTree( is_absent, serve, native_storage_config, - compat_storage_config, - local_api, - remote_api, ts, ws_setter, logger](auto const& hashes) { @@ -254,9 +242,6 @@ void ResolveContentTree( is_absent, serve, native_storage_config, - compat_storage_config, - local_api, - remote_api, is_cache_hit, ws_setter, logger](auto const& values) { @@ -283,9 +268,6 @@ void ResolveContentTree( key, serve, native_storage_config, - compat_storage_config, - local_api, - remote_api, is_cache_hit, ws_setter, logger); @@ -328,9 +310,6 @@ void ResolveContentTree( key, serve, native_storage_config, - compat_storage_config, - local_api, - remote_api, is_cache_hit, ws_setter, logger); @@ -357,9 +336,6 @@ void WriteIdFileAndSetWSRoot( bool is_absent, ServeApi const* serve, gsl::not_null const& native_storage_config, - StorageConfig const* compat_storage_config, - IExecutionApi const* local_api, - IExecutionApi const* remote_api, gsl::not_null const& critical_git_op_map, gsl::not_null const& resolve_symlinks_map, gsl::not_null const& ts, @@ -404,9 +380,6 @@ void WriteIdFileAndSetWSRoot( is_absent, serve, native_storage_config, - compat_storage_config, - local_api, - remote_api, critical_git_op_map, resolve_symlinks_map, ts, @@ -424,9 +397,6 @@ void ExtractAndImportToGit( bool is_absent, ServeApi const* serve, gsl::not_null const& native_storage_config, - StorageConfig const* compat_storage_config, - IExecutionApi const* local_api, - IExecutionApi const* remote_api, gsl::not_null const& critical_git_op_map, gsl::not_null const& import_to_git_map, gsl::not_null const& resolve_symlinks_map, @@ -464,9 +434,6 @@ void ExtractAndImportToGit( is_absent, serve, native_storage_config, - compat_storage_config, - local_api, - remote_api, critical_git_op_map, resolve_symlinks_map, ts, @@ -488,9 +455,6 @@ void ExtractAndImportToGit( is_absent, serve, native_storage_config, - compat_storage_config, - local_api, - remote_api, critical_git_op_map, resolve_symlinks_map, ts, @@ -530,11 +494,8 @@ void HandleLocallyKnownTree( bool fetch_absent, ServeApi const* serve, gsl::not_null const& native_storage_config, - StorageConfig const* compat_storage_config, gsl::not_null const& resolve_symlinks_map, gsl::not_null const& critical_git_op_map, - IExecutionApi const* local_api, - IExecutionApi const* remote_api, gsl::not_null const& ts, ContentGitMap::SetterPtr const& setter, ContentGitMap::LoggerPtr const& logger) { @@ -565,9 +526,6 @@ void HandleLocallyKnownTree( fetch_absent, serve, native_storage_config, - compat_storage_config, - local_api, - remote_api, critical_git_op_map, resolve_symlinks_map, ts, @@ -610,9 +568,6 @@ void HandleLocallyKnownTree( /*is_absent = */ (key.absent and not fetch_absent), serve, native_storage_config, - compat_storage_config, - local_api, - remote_api, critical_git_op_map, resolve_symlinks_map, ts, @@ -636,11 +591,8 @@ void HandleKnownInOlderGenerationAfterImport( bool fetch_absent, ServeApi const* serve, gsl::not_null const& native_storage_config, - StorageConfig const* compat_storage_config, gsl::not_null const& resolve_symlinks_map, gsl::not_null const& critical_git_op_map, - IExecutionApi const* local_api, - IExecutionApi const* remote_api, gsl::not_null const& ts, ContentGitMap::SetterPtr const& setter, ContentGitMap::LoggerPtr const& logger) { @@ -661,11 +613,8 @@ void HandleKnownInOlderGenerationAfterImport( fetch_absent, serve, native_storage_config, - compat_storage_config, resolve_symlinks_map, critical_git_op_map, - local_api, - remote_api, ts, setter, logger); @@ -680,11 +629,8 @@ void HandleKnownInOlderGenerationAfterTaggingAndInit( bool fetch_absent, ServeApi const* serve, gsl::not_null const& native_storage_config, - StorageConfig const* compat_storage_config, gsl::not_null const& resolve_symlinks_map, gsl::not_null const& critical_git_op_map, - IExecutionApi const* local_api, - IExecutionApi const* remote_api, gsl::not_null const& ts, ContentGitMap::SetterPtr const& setter, ContentGitMap::LoggerPtr const& logger) { @@ -722,11 +668,8 @@ void HandleKnownInOlderGenerationAfterTaggingAndInit( fetch_absent, serve, native_storage_config, - compat_storage_config, resolve_symlinks_map, critical_git_op_map, - local_api, - remote_api, ts, setter, logger](auto const& values) { @@ -742,11 +685,8 @@ void HandleKnownInOlderGenerationAfterTaggingAndInit( fetch_absent, serve, native_storage_config, - compat_storage_config, resolve_symlinks_map, critical_git_op_map, - local_api, - remote_api, ts, setter, logger); @@ -767,11 +707,8 @@ void HandleKnownInOlderGenerationAfterTagging( bool fetch_absent, ServeApi const* serve, gsl::not_null const& native_storage_config, - StorageConfig const* compat_storage_config, gsl::not_null const& resolve_symlinks_map, gsl::not_null const& critical_git_op_map, - IExecutionApi const* local_api, - IExecutionApi const* remote_api, gsl::not_null const& ts, ContentGitMap::SetterPtr const& setter, ContentGitMap::LoggerPtr const& logger) { @@ -794,11 +731,8 @@ void HandleKnownInOlderGenerationAfterTagging( fetch_absent, serve, native_storage_config, - compat_storage_config, resolve_symlinks_map, critical_git_op_map, - local_api, - remote_api, ts, setter, logger](auto const& values) { @@ -817,11 +751,8 @@ void HandleKnownInOlderGenerationAfterTagging( fetch_absent, serve, native_storage_config, - compat_storage_config, resolve_symlinks_map, critical_git_op_map, - local_api, - remote_api, ts, setter, logger); @@ -842,11 +773,8 @@ void HandleKnownInOlderGeneration( bool fetch_absent, ServeApi const* serve, gsl::not_null const& native_storage_config, - StorageConfig const* compat_storage_config, gsl::not_null const& resolve_symlinks_map, gsl::not_null const& critical_git_op_map, - IExecutionApi const* local_api, - IExecutionApi const* remote_api, gsl::not_null const& ts, ContentGitMap::SetterPtr const& setter, ContentGitMap::LoggerPtr const& logger) { @@ -880,11 +808,8 @@ void HandleKnownInOlderGeneration( fetch_absent, serve, native_storage_config, - compat_storage_config, resolve_symlinks_map, critical_git_op_map, - local_api, - remote_api, ts, setter, logger](auto const& values) { @@ -901,11 +826,8 @@ void HandleKnownInOlderGeneration( fetch_absent, serve, native_storage_config, - compat_storage_config, resolve_symlinks_map, critical_git_op_map, - local_api, - remote_api, ts, setter, logger); @@ -932,10 +854,7 @@ auto CreateContentGitMap( gsl::not_null const& critical_git_op_map, ServeApi const* serve, gsl::not_null const& native_storage_config, - StorageConfig const* compat_storage_config, gsl::not_null const& native_storage, - IExecutionApi const* local_api, - IExecutionApi const* remote_api, bool fetch_absent, gsl::not_null const& progress, std::size_t jobs) -> ContentGitMap { @@ -948,10 +867,7 @@ auto CreateContentGitMap( ca_info, serve, native_storage_config, - compat_storage_config, native_storage, - local_api, - remote_api, fetch_absent, progress](auto ts, auto setter, @@ -968,11 +884,8 @@ auto CreateContentGitMap( fetch_absent, serve, native_storage_config, - compat_storage_config, resolve_symlinks_map, critical_git_op_map, - local_api, - remote_api, ts, setter, logger); @@ -984,11 +897,8 @@ auto CreateContentGitMap( fetch_absent, serve, native_storage_config, - compat_storage_config, resolve_symlinks_map, critical_git_op_map, - local_api, - remote_api, ts, setter, logger); @@ -1040,9 +950,6 @@ auto CreateContentGitMap( /*is_absent = */ true, serve, native_storage_config, - compat_storage_config, - local_api, - remote_api, critical_git_op_map, import_to_git_map, resolve_symlinks_map, @@ -1079,10 +986,7 @@ auto CreateContentGitMap( ca_info, serve, native_storage_config, - compat_storage_config, native_storage, - local_api, - remote_api, progress, ts, setter, @@ -1142,9 +1046,6 @@ auto CreateContentGitMap( /*is_absent=*/true, serve, native_storage_config, - compat_storage_config, - local_api, - remote_api, critical_git_op_map, import_to_git_map, resolve_symlinks_map, @@ -1182,9 +1083,6 @@ auto CreateContentGitMap( /*is_absent=*/true, serve, native_storage_config, - compat_storage_config, - local_api, - remote_api, critical_git_op_map, import_to_git_map, resolve_symlinks_map, @@ -1240,9 +1138,6 @@ auto CreateContentGitMap( /*is_absent=*/false, /*serve=*/nullptr, native_storage_config, - /*compat_storage_config=*/nullptr, - /*local_api=*/nullptr, - /*remote_api=*/nullptr, critical_git_op_map, import_to_git_map, resolve_symlinks_map, -- cgit v1.2.3