From 2ff2489bdac9e4bd37510f10e126932e519a51d2 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 14 Apr 2019 00:03:35 +0000 Subject: [PATCH] Remove unused method. --- src/lib/video_content_scale.cc | 17 +---------------- src/lib/video_content_scale.h | 3 +-- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/src/lib/video_content_scale.cc b/src/lib/video_content_scale.cc index 636f0e807..137d78ad2 100644 --- a/src/lib/video_content_scale.cc +++ b/src/lib/video_content_scale.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2013-2015 Carl Hetherington + Copyright (C) 2013-2018 Carl Hetherington This file is part of DCP-o-matic. @@ -105,21 +105,6 @@ VideoContentScale::name () const return _("No scale"); } -VideoContentScale -VideoContentScale::from_id (string id) -{ - Ratio const * r = Ratio::from_id (id); - if (r) { - return VideoContentScale (r); - } - - if (id == "S0") { - return VideoContentScale (false); - } - - return VideoContentScale (true); -} - /** @param display_container Size of the container that we are displaying this content in. * @param film_container The size of the film's image. */ diff --git a/src/lib/video_content_scale.h b/src/lib/video_content_scale.h index 2f161b1a7..845c71a52 100644 --- a/src/lib/video_content_scale.h +++ b/src/lib/video_content_scale.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2013-2015 Carl Hetherington + Copyright (C) 2013-2018 Carl Hetherington This file is part of DCP-o-matic. @@ -61,7 +61,6 @@ public: static std::vector all () { return _scales; } - static VideoContentScale from_id (std::string id); private: /** a ratio to stretch the content to, or 0 for no stretch */ -- 2.30.2