diff options
| author | 2021-06-19 03:43:16 -0400 | |
|---|---|---|
| committer | 2021-06-22 13:36:24 -0400 | |
| commit | 81b1b71993473b31321c8ff2d0dd0b267848a968 (patch) | |
| tree | 3f2ab1041c7d819949fd68faa3dd21759f7ce2a9 /src/core | |
| parent | Merge pull request #6506 from ReinUsesLisp/master-semaphore-jthread (diff) | |
| download | yuzu-81b1b71993473b31321c8ff2d0dd0b267848a968.tar.gz yuzu-81b1b71993473b31321c8ff2d0dd0b267848a968.tar.xz yuzu-81b1b71993473b31321c8ff2d0dd0b267848a968.zip | |
common: fs: Remove [[nodiscard]] attribute on Remove* functions
There are a lot of scenarios where we don't particularly care whether or not the removal operation and just simply attempt a removal.
As such, removing the [[nodiscard]] attribute is best for these functions.
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/hle/service/bcat/backend/boxcat.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/bcat/backend/boxcat.cpp b/src/core/hle/service/bcat/backend/boxcat.cpp index a2844ea8c..dc15cf58b 100644 --- a/src/core/hle/service/bcat/backend/boxcat.cpp +++ b/src/core/hle/service/bcat/backend/boxcat.cpp | |||
| @@ -313,7 +313,7 @@ void SynchronizeInternal(AM::Applets::AppletManager& applet_manager, DirectoryGe | |||
| 313 | LOG_ERROR(Service_BCAT, "Boxcat synchronization failed with error '{}'!", res); | 313 | LOG_ERROR(Service_BCAT, "Boxcat synchronization failed with error '{}'!", res); |
| 314 | 314 | ||
| 315 | if (res == DownloadResult::NoMatchBuildId || res == DownloadResult::NoMatchTitleId) { | 315 | if (res == DownloadResult::NoMatchBuildId || res == DownloadResult::NoMatchTitleId) { |
| 316 | void(Common::FS::RemoveFile(zip_path)); | 316 | Common::FS::RemoveFile(zip_path); |
| 317 | } | 317 | } |
| 318 | 318 | ||
| 319 | HandleDownloadDisplayResult(applet_manager, res); | 319 | HandleDownloadDisplayResult(applet_manager, res); |
| @@ -445,7 +445,7 @@ std::optional<std::vector<u8>> Boxcat::GetLaunchParameter(TitleIDVersion title) | |||
| 445 | LOG_ERROR(Service_BCAT, "Boxcat synchronization failed with error '{}'!", res); | 445 | LOG_ERROR(Service_BCAT, "Boxcat synchronization failed with error '{}'!", res); |
| 446 | 446 | ||
| 447 | if (res == DownloadResult::NoMatchBuildId || res == DownloadResult::NoMatchTitleId) { | 447 | if (res == DownloadResult::NoMatchBuildId || res == DownloadResult::NoMatchTitleId) { |
| 448 | void(Common::FS::RemoveFile(bin_file_path)); | 448 | Common::FS::RemoveFile(bin_file_path); |
| 449 | } | 449 | } |
| 450 | 450 | ||
| 451 | HandleDownloadDisplayResult(applet_manager, res); | 451 | HandleDownloadDisplayResult(applet_manager, res); |