Some cleanup.

This commit is contained in:
David Given
2025-10-11 18:48:14 +02:00
parent fd554f0808
commit 2a96d9bd78
2 changed files with 1 additions and 15 deletions

View File

@@ -27,18 +27,11 @@
#define STRINGIFY(a) XSTRINGIFY(a)
#define XSTRINGIFY(a) #a
template <class T>
static inline std::vector<T> vector_of(T item)
{
return std::vector<T>{item};
}
typedef double nanoseconds_t;
class Bytes;
extern double getCurrentTime();
extern void hexdump(std::ostream& stream, const Bytes& bytes);
extern void hexdumpForSrp16(std::ostream& stream, const Bytes& bytes);
struct ErrorException : public std::exception
{
@@ -46,7 +39,7 @@ struct ErrorException : public std::exception
const std::string message;
const char* what() const throw();
const char* what() const throw() override;
void print() const;
};

View File

@@ -32,10 +32,3 @@ void hexdump(std::ostream& stream, const Bytes& buffer)
pos += 16;
}
}
void hexdumpForSrp16(std::ostream& stream, const Bytes& buffer)
{
for (uint8_t byte : buffer)
stream << fmt::format("{:02x}", byte);
stream << std::endl;
}