diff options
author | Andreas Kling <kling@serenityos.org> | 2021-03-12 17:29:37 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-03-12 17:29:37 +0100 |
commit | ef1e5db1d063f55e57b1d7623ea7154583fc95ad (patch) | |
tree | fb92514e07f4017cb899258137c817c07da9d5c5 /Userland/Libraries/LibCrypto | |
parent | 423ed5339651a2646c64ee4fd7b3b32bb7f8c942 (diff) | |
download | serenity-ef1e5db1d063f55e57b1d7623ea7154583fc95ad.zip |
Everywhere: Remove klog(), dbg() and purge all LogStream usage :^)
Good-bye LogStream. Long live AK::Format!
Diffstat (limited to 'Userland/Libraries/LibCrypto')
-rw-r--r-- | Userland/Libraries/LibCrypto/BigInt/SignedBigInteger.h | 14 | ||||
-rw-r--r-- | Userland/Libraries/LibCrypto/BigInt/UnsignedBigInteger.h | 14 | ||||
-rw-r--r-- | Userland/Libraries/LibCrypto/Checksum/CRC32.h | 1 |
3 files changed, 0 insertions, 29 deletions
diff --git a/Userland/Libraries/LibCrypto/BigInt/SignedBigInteger.h b/Userland/Libraries/LibCrypto/BigInt/SignedBigInteger.h index 753a27c47c..77ed86d634 100644 --- a/Userland/Libraries/LibCrypto/BigInt/SignedBigInteger.h +++ b/Userland/Libraries/LibCrypto/BigInt/SignedBigInteger.h @@ -141,20 +141,6 @@ struct SignedDivisionResult { } -inline const LogStream& -operator<<(const LogStream& stream, const Crypto::SignedBigInteger value) -{ - if (value.is_invalid()) { - stream << "Invalid BigInt"; - return stream; - } - if (value.is_negative()) - stream << "-"; - - stream << value.unsigned_value(); - return stream; -} - inline Crypto::SignedBigInteger operator""_sbigint(const char* string, size_t length) { diff --git a/Userland/Libraries/LibCrypto/BigInt/UnsignedBigInteger.h b/Userland/Libraries/LibCrypto/BigInt/UnsignedBigInteger.h index becae66749..51c1d9f776 100644 --- a/Userland/Libraries/LibCrypto/BigInt/UnsignedBigInteger.h +++ b/Userland/Libraries/LibCrypto/BigInt/UnsignedBigInteger.h @@ -27,7 +27,6 @@ #pragma once #include <AK/ByteBuffer.h> -#include <AK/LogStream.h> #include <AK/Span.h> #include <AK/String.h> #include <AK/Types.h> @@ -131,19 +130,6 @@ struct UnsignedDivisionResult { } -inline const LogStream& -operator<<(const LogStream& stream, const Crypto::UnsignedBigInteger& value) -{ - if (value.is_invalid()) { - stream << "Invalid BigInt"; - return stream; - } - for (int i = value.length() - 1; i >= 0; --i) { - stream << value.words()[i] << "|"; - } - return stream; -} - template<> struct AK::Formatter<Crypto::UnsignedBigInteger> : Formatter<StringView> { void format(FormatBuilder&, const Crypto::UnsignedBigInteger&); diff --git a/Userland/Libraries/LibCrypto/Checksum/CRC32.h b/Userland/Libraries/LibCrypto/Checksum/CRC32.h index df6d17ec16..a3a9b1150e 100644 --- a/Userland/Libraries/LibCrypto/Checksum/CRC32.h +++ b/Userland/Libraries/LibCrypto/Checksum/CRC32.h @@ -26,7 +26,6 @@ #pragma once -#include <AK/LogStream.h> #include <AK/Span.h> #include <AK/Types.h> #include <LibCrypto/Checksum/ChecksumFunction.h> |