summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir/ui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'facetracknoir/ui.cpp')
-rw-r--r--facetracknoir/ui.cpp33
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>