summaryrefslogtreecommitdiff
path: root/src/types.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-08-22 23:11:18 +0200
committerCarl Hetherington <cth@carlh.net>2023-08-22 23:11:18 +0200
commitde40756eed79a4df7cb614e2746057f6b2a76872 (patch)
treec33b183ecabf4ed8c756bd04cc354c83bced9f25 /src/types.cc
parentac5445d9ee7dbb6fd7dda08f965c661b01e26c90 (diff)
Cleanup: extract VAlign to its own files.
Diffstat (limited to 'src/types.cc')
-rw-r--r--src/types.cc31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/types.cc b/src/types.cc
index e2e72ad1..80931922 100644
--- a/src/types.cc
+++ b/src/types.cc
@@ -222,37 +222,6 @@ dcp::string_to_halign (string s)
string
-dcp::valign_to_string (VAlign v)
-{
- switch (v) {
- case VAlign::TOP:
- return "top";
- case VAlign::CENTER:
- return "center";
- case VAlign::BOTTOM:
- return "bottom";
- }
-
- boost::throw_exception (MiscError("unknown subtitle valign type"));
-}
-
-
-VAlign
-dcp::string_to_valign (string s)
-{
- if (s == "top") {
- return VAlign::TOP;
- } else if (s == "center") {
- return VAlign::CENTER;
- } else if (s == "bottom") {
- return VAlign::BOTTOM;
- }
-
- boost::throw_exception (ReadError("unknown subtitle valign type"));
-}
-
-
-string
dcp::direction_to_string (Direction v)
{
switch (v) {