From fff3b5fb32406b929891dcfdd005af7fbfa025d9 Mon Sep 17 00:00:00 2001 From: Bartosz Wieczorek Date: Fri, 18 Jul 2025 14:25:20 +0200 Subject: [PATCH] Remove deadcode --- PAM/ssh/include/rublon/utils.hpp | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/PAM/ssh/include/rublon/utils.hpp b/PAM/ssh/include/rublon/utils.hpp index 5449116..59bece9 100755 --- a/PAM/ssh/include/rublon/utils.hpp +++ b/PAM/ssh/include/rublon/utils.hpp @@ -124,29 +124,6 @@ void log(LogLevel level, const char * fmt, Ti &&... ti) noexcept { details::doLog(level, {line.data(), static_cast< std::size_t >(len)}); } -class PrintUser { - public: - template < typename Printer > - PrintUser(Printer & p) : _impl{std::make_unique< ModelImpl >(p)} {} - - private: - struct model { - virtual ~model(); - virtual void print(std::string_view line) const = 0; - }; - - template < typename Printer_T > - struct ModelImpl : public model { - ModelImpl(Printer_T & printer) : _printer{printer} {} - void print(std::string_view line) const override { - _printer.print(line); - } - Printer_T & _printer; - }; - - std::unique_ptr< model > _impl; -}; - namespace conv { enum class Error { OutOfRange, NotANumber };