From c4e10c9a007345cca8594d7bfd23138d56e21d5e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 30 Apr 2020 00:28:33 +0200 Subject: Move TrustedDevice to its own source files. --- src/lib/screen.cc | 32 -------------------------------- 1 file changed, 32 deletions(-) (limited to 'src/lib/screen.cc') diff --git a/src/lib/screen.cc b/src/lib/screen.cc index 632370810..c4bcb41c7 100644 --- a/src/lib/screen.cc +++ b/src/lib/screen.cc @@ -77,38 +77,6 @@ Screen::trusted_device_thumbprints () const return t; } -TrustedDevice::TrustedDevice (string thumbprint) - : _thumbprint (thumbprint) -{ - -} - -TrustedDevice::TrustedDevice (dcp::Certificate certificate) - : _certificate (certificate) -{ - -} - -string -TrustedDevice::as_string () const -{ - if (_certificate) { - return _certificate->certificate(true); - } - - return *_thumbprint; -} - -string -TrustedDevice::thumbprint () const -{ - if (_certificate) { - return _certificate->thumbprint (); - } - - return *_thumbprint; -} - KDMWithMetadataPtr kdm_for_screen ( -- cgit v1.2.3