mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 01:59:31 +00:00
LibCrypto: Remove unused create_invalid
method on UnsignedBigInteger
This commit is contained in:
parent
f854f644a7
commit
ac16008d09
Notes:
github-actions[bot]
2025-04-28 10:07:34 +00:00
Author: https://github.com/devgianlu
Commit: ac16008d09
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4482
Reviewed-by: https://github.com/gmta ✅
3 changed files with 0 additions and 14 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue