summaryrefslogtreecommitdiff
path: root/src/wx/recipient_dialog.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-02-10 22:40:16 +0100
committerCarl Hetherington <cth@carlh.net>2024-02-10 22:40:16 +0100
commiteade5cc8657f51d1d768b705936e918f8d1f53ee (patch)
treef7aa1c8c21a483b69f3e4c7908c6310fb7af932e /src/wx/recipient_dialog.cc
parent0e18e7acd23ef466cc14a8b2d9a19df4dd991ddc (diff)
Also remove now-redundant UTC offset from DKDMRecipient.
Diffstat (limited to 'src/wx/recipient_dialog.cc')
-rw-r--r--src/wx/recipient_dialog.cc43
1 files changed, 1 insertions, 42 deletions
diff --git a/src/wx/recipient_dialog.cc b/src/wx/recipient_dialog.cc
index b166f265d..1b38ea2d1 100644
--- a/src/wx/recipient_dialog.cc
+++ b/src/wx/recipient_dialog.cc
@@ -55,7 +55,7 @@ column (string s)
RecipientDialog::RecipientDialog (
- wxWindow* parent, wxString title, string name, string notes, vector<string> emails, int utc_offset_hour, int utc_offset_minute, optional<dcp::Certificate> recipient
+ wxWindow* parent, wxString title, string name, string notes, vector<string> emails, optional<dcp::Certificate> recipient
)
: wxDialog (parent, wxID_ANY, title)
, _recipient (recipient)
@@ -76,11 +76,6 @@ RecipientDialog::RecipientDialog (
_sizer->Add (_notes, wxGBPosition (r, 1));
++r;
- add_label_to_sizer (_sizer, this, _("UTC offset (time zone)"), true, wxGBPosition (r, 0));
- _utc_offset = new wxChoice (this, wxID_ANY);
- _sizer->Add (_utc_offset, wxGBPosition (r, 1));
- ++r;
-
add_label_to_sizer (_sizer, this, _("Email addresses for KDM delivery"), false, wxGBPosition (r, 0), wxGBSpan (1, 2));
++r;
@@ -128,17 +123,6 @@ RecipientDialog::RecipientDialog (
overall_sizer->Add (buttons, wxSizerFlags().Expand().DoubleBorder());
}
- /* Default to UTC */
- size_t sel = get_offsets (_offsets);
- for (size_t i = 0; i < _offsets.size(); ++i) {
- _utc_offset->Append (_offsets[i].name);
- if (_offsets[i].hour == utc_offset_hour && _offsets[i].minute == utc_offset_minute) {
- sel = i;
- }
- }
-
- _utc_offset->SetSelection (sel);
-
overall_sizer->Layout ();
overall_sizer->SetSizeHints (this);
@@ -237,28 +221,3 @@ RecipientDialog::emails () const
{
return _emails;
}
-
-
-int
-RecipientDialog::utc_offset_hour () const
-{
- int const sel = _utc_offset->GetSelection();
- if (sel < 0 || sel > int (_offsets.size())) {
- return 0;
- }
-
- return _offsets[sel].hour;
-}
-
-int
-RecipientDialog::utc_offset_minute () const
-{
- int const sel = _utc_offset->GetSelection();
- if (sel < 0 || sel > int (_offsets.size())) {
- return 0;
- }
-
- return _offsets[sel].minute;
-}
-
-