Skip to content

Commit 7590260

Browse files
committed
Actually, this specific formatter is unnecessary
We don't need a formatter for Confidence<Ref<T>> when we have Confidence<T> and Ref<T> already, so this can just go.
1 parent 92b817b commit 7590260

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

binaryninjaapi.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16355,15 +16355,6 @@ template<typename T> struct fmt::formatter<BinaryNinja::Confidence<T>>
1635516355
constexpr auto parse(format_parse_context& ctx) -> format_parse_context::iterator { return ctx.begin(); }
1635616356
};
1635716357

16358-
template<typename T> struct fmt::formatter<BinaryNinja::Confidence<BinaryNinja::Ref<T>>>
16359-
{
16360-
format_context::iterator format(const BinaryNinja::Confidence<BinaryNinja::Ref<T>>& obj, format_context& ctx) const
16361-
{
16362-
return fmt::format_to(ctx.out(), "{} ({} confidence)", *obj.GetValue().GetPtr(), obj.GetConfidence());
16363-
}
16364-
constexpr auto parse(format_parse_context& ctx) -> format_parse_context::iterator { return ctx.begin(); }
16365-
};
16366-
1636716358
template<> struct fmt::formatter<BinaryNinja::Metadata>
1636816359
{
1636916360
format_context::iterator format(const BinaryNinja::Metadata& obj, format_context& ctx) const;

0 commit comments

Comments
 (0)