diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-04-14 00:03:35 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-04-14 00:03:35 +0000 |
| commit | 2ff2489bdac9e4bd37510f10e126932e519a51d2 (patch) | |
| tree | 8c86d3099b6cf8fec8e078c11b2063fd0cd2903b /src/lib | |
| parent | daa53f9d523d4aaaf146a690b0fcc0228d736fa5 (diff) | |
Remove unused method.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/video_content_scale.cc | 17 | ||||
| -rw-r--r-- | 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 <cth@carlh.net> + Copyright (C) 2013-2018 Carl Hetherington <cth@carlh.net> 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 <cth@carlh.net> + Copyright (C) 2013-2018 Carl Hetherington <cth@carlh.net> This file is part of DCP-o-matic. @@ -61,7 +61,6 @@ public: static std::vector<VideoContentScale> all () { return _scales; } - static VideoContentScale from_id (std::string id); private: /** a ratio to stretch the content to, or 0 for no stretch */ |
