diff --git a/include/LIEF/MachO/ChainedBindingInfo.hpp b/include/LIEF/MachO/ChainedBindingInfo.hpp index b59442038e..ed1adb8ca7 100644 --- a/include/LIEF/MachO/ChainedBindingInfo.hpp +++ b/include/LIEF/MachO/ChainedBindingInfo.hpp @@ -99,8 +99,6 @@ class LIEF_API ChainedBindingInfo : public BindingInfo { LIEF_API friend std::ostream& operator<<(std::ostream& os, const ChainedBindingInfo& info); - static bool classof(const BindingInfo& info); - private: void clear(); enum class BIND_TYPES { diff --git a/include/LIEF/MachO/DyldBindingInfo.hpp b/include/LIEF/MachO/DyldBindingInfo.hpp index 26cc819bba..b3a0641e82 100644 --- a/include/LIEF/MachO/DyldBindingInfo.hpp +++ b/include/LIEF/MachO/DyldBindingInfo.hpp @@ -73,7 +73,6 @@ class LIEF_API DyldBindingInfo : public BindingInfo { return BindingInfo::TYPES::DYLD_INFO; } - static bool classof(BindingInfo* info) { return info->type() == BindingInfo::TYPES::DYLD_INFO; } @@ -83,9 +82,6 @@ class LIEF_API DyldBindingInfo : public BindingInfo { void accept(Visitor& visitor) const override; LIEF_API friend std::ostream& operator<<(std::ostream& os, const DyldBindingInfo& binding_info); - - static bool classof(const BindingInfo& info); - private: BINDING_CLASS class_ = BINDING_CLASS::BIND_CLASS_STANDARD; BIND_TYPES binding_type_ = BIND_TYPES::BIND_TYPE_POINTER; diff --git a/src/MachO/ChainedBindingInfo.cpp b/src/MachO/ChainedBindingInfo.cpp index a853367511..27e37d6a1f 100644 --- a/src/MachO/ChainedBindingInfo.cpp +++ b/src/MachO/ChainedBindingInfo.cpp @@ -67,13 +67,6 @@ void ChainedBindingInfo::accept(Visitor& visitor) const { visitor.visit(*this); } - - -bool ChainedBindingInfo::classof(const BindingInfo& info) { - return info.type() == BindingInfo::TYPES::CHAINED; -} - - uint64_t ChainedBindingInfo::address() const { return /* imagebase */ address_ + offset_; } diff --git a/src/MachO/DyldBindingInfo.cpp b/src/MachO/DyldBindingInfo.cpp index b6059a259f..c3482ef4dc 100644 --- a/src/MachO/DyldBindingInfo.cpp +++ b/src/MachO/DyldBindingInfo.cpp @@ -79,12 +79,6 @@ void DyldBindingInfo::accept(Visitor& visitor) const { visitor.visit(*this); } - - -bool DyldBindingInfo::classof(const BindingInfo& info) { - return info.type() == BindingInfo::TYPES::DYLD_INFO; -} - std::ostream& operator<<(std::ostream& os, const DyldBindingInfo& info) { os << static_cast(info); return os;