LibCrypto: Remove unused create_invalid method on UnsignedBigInteger

This commit is contained in:
devgianlu 2025-04-21 12:02:43 +02:00 committed by Jelle Raaijmakers
commit ac16008d09
Notes: github-actions[bot] 2025-04-28 10:07:34 +00:00
3 changed files with 0 additions and 14 deletions

View file

@ -52,11 +52,6 @@ public:
{
}
[[nodiscard]] static SignedBigInteger create_invalid()
{
return { UnsignedBigInteger::create_invalid(), false };
}
[[nodiscard]] static SignedBigInteger import_data(StringView data) { return import_data((u8 const*)data.characters_without_null_termination(), data.length()); }
[[nodiscard]] static SignedBigInteger import_data(u8 const* ptr, size_t length);

View file

@ -97,13 +97,6 @@ UnsignedBigInteger::UnsignedBigInteger(double value)
VERIFY(raw_mantissa == 0);
}
UnsignedBigInteger UnsignedBigInteger::create_invalid()
{
UnsignedBigInteger invalid(0);
invalid.invalidate();
return invalid;
}
size_t UnsignedBigInteger::export_data(Bytes data, bool remove_leading_zeros) const
{
size_t word_count = trimmed_length();

View file

@ -55,8 +55,6 @@ public:
UnsignedBigInteger() = default;
[[nodiscard]] static UnsignedBigInteger create_invalid();
[[nodiscard]] static UnsignedBigInteger import_data(StringView data) { return import_data((u8 const*)data.characters_without_null_termination(), data.length()); }
[[nodiscard]] static UnsignedBigInteger import_data(u8 const* ptr, size_t length)
{