diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-08-26 08:40:07 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-08-26 08:40:07 +0200 |
commit | fa374bca7b8e034987e96fa3d3f87c63d36a407f (patch) | |
tree | 9a74efe716b2da95b82ce413cf853bd8abdecb4e /facetracknoir | |
parent | df9c024b596d74b02341387577fd0ea1d95d6c78 (diff) |
ui: decruftopentrack-2.3-rc17
Diffstat (limited to 'facetracknoir')
-rw-r--r-- | facetracknoir/ui.cpp | 33 |
1 files changed, 3 insertions, 30 deletions
diff --git a/facetracknoir/ui.cpp b/facetracknoir/ui.cpp index 3d768d8b..9e1d477c 100644 --- a/facetracknoir/ui.cpp +++ b/facetracknoir/ui.cpp @@ -95,13 +95,7 @@ MainWindow::MainWindow() : if (!QFile(pathname).exists()) { QFile file(pathname); - if (file.open(QFile::ReadWrite)) - { -#if 0 - QTextStream stream(&file); - stream << "\n"; -#endif - } + (void) file.open(QFile::ReadWrite); } } } @@ -164,14 +158,7 @@ void MainWindow::make_empty_config() if (dir != "" && get_new_config_name_from_dialog(name)) { QFile filename(dir + "/" + name); - if (filename.open(QFile::ReadWrite)) - { -#if 0 - QTextStream stream(&filename); - stream << "\n"; -#endif - refresh_config_list(); - } + (void) filename.open(QFile::ReadWrite); } } @@ -208,13 +195,7 @@ void MainWindow::refresh_config_list() if (group::ini_list().size() == 0) { QFile filename(group::ini_directory() + "/" OPENTRACK_DEFAULT_CONFIG); - if (filename.open(QFile::ReadWrite)) - { -#if 0 - QTextStream stream(&filename); - stream << "\n"; -#endif - } + (void) filename.open(QFile::ReadWrite); } QStringList ini_list = group::ini_list(); @@ -370,14 +351,6 @@ void MainWindow::showHeadPose() work->tracker->get_raw_and_mapped_poses(mapped, raw); display_pose(mapped, raw); - -#if 0 - if (libs.pProtocol) - { - const QString name = libs.pProtocol->game_name(); - ui.game_name->setText(name); - } -#endif } template<typename t> |