summaryrefslogtreecommitdiff
path: root/src/types.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-08-22 23:18:20 +0200
committerCarl Hetherington <cth@carlh.net>2023-08-22 23:18:20 +0200
commitb631f906ac2adb0e7a6c34d3535a31dd6b2e6f27 (patch)
tree7864b96ab5ca6e91f770199a134f8a1a5b0f2726 /src/types.cc
parentde40756eed79a4df7cb614e2746057f6b2a76872 (diff)
Cleanup: extract HAlign 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 80931922..0546c476 100644
--- a/src/types.cc
+++ b/src/types.cc
@@ -191,37 +191,6 @@ dcp::string_to_effect (string s)
string
-dcp::halign_to_string (HAlign h)
-{
- switch (h) {
- case HAlign::LEFT:
- return "left";
- case HAlign::CENTER:
- return "center";
- case HAlign::RIGHT:
- return "right";
- }
-
- boost::throw_exception (MiscError("unknown subtitle halign type"));
-}
-
-
-HAlign
-dcp::string_to_halign (string s)
-{
- if (s == "left") {
- return HAlign::LEFT;
- } else if (s == "center") {
- return HAlign::CENTER;
- } else if (s == "right") {
- return HAlign::RIGHT;
- }
-
- boost::throw_exception (ReadError("unknown subtitle halign type"));
-}
-
-
-string
dcp::direction_to_string (Direction v)
{
switch (v) {