소스 검색

Merge pull request #2341 from lioncash/compare

file_sys/nca_metadata: Remove unnecessary comparison operators for TitleType
bunnei 7 년 전
부모
커밋
23d3cd7604
2개의 변경된 파일0개의 추가작업 그리고 11개의 파일을 삭제
  1. 0 8
      src/core/file_sys/nca_metadata.cpp
  2. 0 3
      src/core/file_sys/nca_metadata.h

+ 0 - 8
src/core/file_sys/nca_metadata.cpp

@@ -10,14 +10,6 @@
 
 
 namespace FileSys {
 namespace FileSys {
 
 
-bool operator>=(TitleType lhs, TitleType rhs) {
-    return static_cast<std::size_t>(lhs) >= static_cast<std::size_t>(rhs);
-}
-
-bool operator<=(TitleType lhs, TitleType rhs) {
-    return static_cast<std::size_t>(lhs) <= static_cast<std::size_t>(rhs);
-}
-
 CNMT::CNMT(VirtualFile file) {
 CNMT::CNMT(VirtualFile file) {
     if (file->ReadObject(&header) != sizeof(CNMTHeader))
     if (file->ReadObject(&header) != sizeof(CNMTHeader))
         return;
         return;

+ 0 - 3
src/core/file_sys/nca_metadata.h

@@ -29,9 +29,6 @@ enum class TitleType : u8 {
     DeltaTitle = 0x83,
     DeltaTitle = 0x83,
 };
 };
 
 
-bool operator>=(TitleType lhs, TitleType rhs);
-bool operator<=(TitleType lhs, TitleType rhs);
-
 enum class ContentRecordType : u8 {
 enum class ContentRecordType : u8 {
     Meta = 0,
     Meta = 0,
     Program = 1,
     Program = 1,