diff options
| author | 2019-04-05 23:38:37 -0400 | |
|---|---|---|
| committer | 2019-04-05 23:38:37 -0400 | |
| commit | 23d3cd7604fc672a69589c2e68cc1eddd6a4951e (patch) | |
| tree | e4f117ada25e304b0b3cadc2b37e1f96af3eafcc /src/core | |
| parent | Merge pull request #2339 from lioncash/rank (diff) | |
| parent | file_sys/nca_metadata: Remove unnecessary comparison operators for TitleType (diff) | |
| download | yuzu-23d3cd7604fc672a69589c2e68cc1eddd6a4951e.tar.gz yuzu-23d3cd7604fc672a69589c2e68cc1eddd6a4951e.tar.xz yuzu-23d3cd7604fc672a69589c2e68cc1eddd6a4951e.zip | |
Merge pull request #2341 from lioncash/compare
file_sys/nca_metadata: Remove unnecessary comparison operators for TitleType
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/file_sys/nca_metadata.cpp | 8 | ||||
| -rw-r--r-- | src/core/file_sys/nca_metadata.h | 3 |
2 files changed, 0 insertions, 11 deletions
diff --git a/src/core/file_sys/nca_metadata.cpp b/src/core/file_sys/nca_metadata.cpp index 6f34b7836..93d0df6b9 100644 --- a/src/core/file_sys/nca_metadata.cpp +++ b/src/core/file_sys/nca_metadata.cpp | |||
| @@ -10,14 +10,6 @@ | |||
| 10 | 10 | ||
| 11 | namespace FileSys { | 11 | namespace FileSys { |
| 12 | 12 | ||
| 13 | bool operator>=(TitleType lhs, TitleType rhs) { | ||
| 14 | return static_cast<std::size_t>(lhs) >= static_cast<std::size_t>(rhs); | ||
| 15 | } | ||
| 16 | |||
| 17 | bool operator<=(TitleType lhs, TitleType rhs) { | ||
| 18 | return static_cast<std::size_t>(lhs) <= static_cast<std::size_t>(rhs); | ||
| 19 | } | ||
| 20 | |||
| 21 | CNMT::CNMT(VirtualFile file) { | 13 | CNMT::CNMT(VirtualFile file) { |
| 22 | if (file->ReadObject(&header) != sizeof(CNMTHeader)) | 14 | if (file->ReadObject(&header) != sizeof(CNMTHeader)) |
| 23 | return; | 15 | return; |
diff --git a/src/core/file_sys/nca_metadata.h b/src/core/file_sys/nca_metadata.h index a05d155f4..50bf38471 100644 --- a/src/core/file_sys/nca_metadata.h +++ b/src/core/file_sys/nca_metadata.h | |||
| @@ -29,9 +29,6 @@ enum class TitleType : u8 { | |||
| 29 | DeltaTitle = 0x83, | 29 | DeltaTitle = 0x83, |
| 30 | }; | 30 | }; |
| 31 | 31 | ||
| 32 | bool operator>=(TitleType lhs, TitleType rhs); | ||
| 33 | bool operator<=(TitleType lhs, TitleType rhs); | ||
| 34 | |||
| 35 | enum class ContentRecordType : u8 { | 32 | enum class ContentRecordType : u8 { |
| 36 | Meta = 0, | 33 | Meta = 0, |
| 37 | Program = 1, | 34 | Program = 1, |