[MachO/Core] Remove (now) unused static member function. NFCI.

llvm-svn: 277760
This commit is contained in:
Davide Italiano 2016-08-04 19:49:11 +00:00
parent 86c052238a
commit 6bb5d2ddd3
2 changed files with 0 additions and 16 deletions

View File

@ -354,10 +354,6 @@ public:
return atomContentType == typeCFI; return atomContentType == typeCFI;
} }
// Returns true if lhs should be placed before rhs in the final output.
static bool compareByPosition(const DefinedAtom *lhs,
const DefinedAtom *rhs);
protected: protected:
// DefinedAtom is an abstract base class. Only subclasses can access // DefinedAtom is an abstract base class. Only subclasses can access
// constructor. // constructor.

View File

@ -79,16 +79,4 @@ DefinedAtom::ContentPermissions DefinedAtom::permissions(ContentType type) {
llvm_unreachable("unknown content type"); llvm_unreachable("unknown content type");
} }
bool DefinedAtom::compareByPosition(const DefinedAtom *lhs,
const DefinedAtom *rhs) {
if (lhs == rhs)
return false;
const File *lhsFile = &lhs->file();
const File *rhsFile = &rhs->file();
if (lhsFile->ordinal() != rhsFile->ordinal())
return lhsFile->ordinal() < rhsFile->ordinal();
assert(lhs->ordinal() != rhs->ordinal());
return lhs->ordinal() < rhs->ordinal();
}
} // namespace } // namespace