Remove unused file_dialog_wrapper.h
authorCarl Hetherington <cth@carlh.net>
Sun, 23 Jan 2022 19:47:34 +0000 (20:47 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 9 Mar 2022 16:04:02 +0000 (17:04 +0100)
src/tools/dcpomatic_kdm.cc
src/wx/file_dialog_wrapper.h [deleted file]
src/wx/recipient_dialog.cc
src/wx/screen_dialog.cc

index 4a98619f2220889f611a40cdbbd35a06f17405ee..9a65314e52f0c89b8669db11f12857374e30b742 100644 (file)
@@ -22,7 +22,6 @@
 #include "wx/about_dialog.h"
 #include "wx/dcpomatic_button.h"
 #include "wx/editable_list.h"
-#include "wx/file_dialog_wrapper.h"
 #include "wx/file_picker_ctrl.h"
 #include "wx/full_config_dialog.h"
 #include "wx/job_view_dialog.h"
diff --git a/src/wx/file_dialog_wrapper.h b/src/wx/file_dialog_wrapper.h
deleted file mode 100644 (file)
index 8223371..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
-    Copyright (C) 2012-2021 Carl Hetherington <cth@carlh.net>
-
-    This file is part of DCP-o-matic.
-
-    DCP-o-matic is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
-    (at your option) any later version.
-
-    DCP-o-matic is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with DCP-o-matic.  If not, see <http://www.gnu.org/licenses/>.
-
-*/
-
-
-#include "wx_util.h"
-#include <dcp/util.h>
-
-
-template <class T>
-class FileDialogWrapper
-{
-public:
-       FileDialogWrapper (wxWindow* parent, wxString title)
-               : _parent (parent)
-       {
-               _dialog = new wxFileDialog (parent, title);
-       }
-
-       void set (T) {}
-
-       boost::optional<T> get ()
-       {
-               return T (dcp::file_to_string(wx_to_std(_dialog->GetPath())));
-       }
-
-       int ShowModal ()
-       {
-               return _dialog->ShowModal ();
-       }
-
-       void Destroy ()
-       {
-               _dialog->Destroy ();
-               /* eek! */
-               delete this;
-       }
-
-protected:
-       wxWindow* _parent;
-       wxFileDialog* _dialog;
-};
index d59226a96e94abb2e101de54e047188e62c01a57..eecb7c04085cc3d41298d120ededf4ca2f58186e 100644 (file)
 
 */
 
+
+#include "dcpomatic_button.h"
+#include "download_certificate_dialog.h"
 #include "recipient_dialog.h"
-#include "wx_util.h"
-#include "file_dialog_wrapper.h"
 #include "static_text.h"
-#include "download_certificate_dialog.h"
 #include "table_dialog.h"
-#include "dcpomatic_button.h"
+#include "wx_util.h"
 #include "lib/compose.hpp"
 #include "lib/util.h"
 #include <dcp/exceptions.h>
@@ -36,12 +36,13 @@ DCPOMATIC_DISABLE_WARNINGS
 DCPOMATIC_ENABLE_WARNINGS
 #include <iostream>
 
-using std::string;
+
 using std::cout;
-using std::vector;
 using std::list;
-using boost::optional;
+using std::string;
+using std::vector;
 using boost::bind;
+using boost::optional;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
 #endif
index af5e25f476ba19d1998f2561b7c909df439e9b51..ecac974e2dc5aa0cacdbebbfe9f17df2f9600283 100644 (file)
@@ -21,7 +21,6 @@
 
 #include "dcpomatic_button.h"
 #include "download_certificate_dialog.h"
-#include "file_dialog_wrapper.h"
 #include "screen_dialog.h"
 #include "static_text.h"
 #include "table_dialog.h"