Skip to content

Commit 202c71c

Browse files
committed
Remove unused parameter
1 parent cc36361 commit 202c71c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

sycl/include/sycl/detail/os_util.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class __SYCL_EXPORT OSUtil {
9595
// exporting them as ABI. They are only used in persistent cache
9696
// implementation and should not be exposed to the end users.
9797
// Get size of directory in bytes.
98-
size_t getDirectorySize(const std::string &Path, bool ignoreError);
98+
size_t getDirectorySize(const std::string &Path);
9999

100100
// Get size of file in bytes.
101101
size_t getFileSize(const std::string &Path);

sycl/source/detail/os_util.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ void fileTreeWalk(const std::string Path,
311311
}
312312

313313
// Get size of a directory in bytes.
314-
size_t getDirectorySize(const std::string &Path, bool IgnoreError = false) {
314+
size_t getDirectorySize(const std::string &Path) {
315315
size_t DirSizeVar = 0;
316316

317317
auto CollectFIleSize = [&DirSizeVar](const std::string Path) {

sycl/source/detail/persistent_device_code_cache.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ void PersistentDeviceCodeCache::repopulateCacheSizeFile(
233233
// Calculate the size of the cache directory.
234234
// During directory size calculation, do not add anything
235235
// in the cache. Otherwise, we'll get a std::fs_error.
236-
size_t CacheSize = getDirectorySize(CacheRoot, true);
236+
size_t CacheSize = getDirectorySize(CacheRoot);
237237

238238
std::ofstream FileStream{CacheSizeFile};
239239
FileStream << CacheSize;

0 commit comments

Comments
 (0)