summaryrefslogtreecommitdiff
path: root/src/lib/screen.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-04-30 00:28:33 +0200
committerCarl Hetherington <cth@carlh.net>2020-05-06 20:36:02 +0200
commitc4e10c9a007345cca8594d7bfd23138d56e21d5e (patch)
tree7ae58f6db433850666c6d2a70f112666ceea23a9 /src/lib/screen.cc
parentbcb5a3f8bc060240db5573ded03e1a0521977207 (diff)
Move TrustedDevice to its own source files.
Diffstat (limited to 'src/lib/screen.cc')
-rw-r--r--src/lib/screen.cc32
1 files changed, 0 insertions, 32 deletions
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 (