summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-08-26 08:40:07 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-08-26 08:40:07 +0200
commitfa374bca7b8e034987e96fa3d3f87c63d36a407f (patch)
tree9a74efe716b2da95b82ce413cf853bd8abdecb4e
parentdf9c024b596d74b02341387577fd0ea1d95d6c78 (diff)
-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>