From ef1e5db1d063f55e57b1d7623ea7154583fc95ad Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 12 Mar 2021 17:29:37 +0100 Subject: Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) Good-bye LogStream. Long live AK::Format! --- Userland/Libraries/LibCrypto/BigInt/SignedBigInteger.h | 14 -------------- Userland/Libraries/LibCrypto/BigInt/UnsignedBigInteger.h | 14 -------------- Userland/Libraries/LibCrypto/Checksum/CRC32.h | 1 - 3 files changed, 29 deletions(-) (limited to 'Userland/Libraries/LibCrypto') 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 -#include #include #include #include @@ -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 : Formatter { 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 #include #include #include -- cgit v1.2.3