[chronojump] Clean warnings
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Clean warnings
- Date: Mon, 20 Dec 2021 11:03:45 +0000 (UTC)
commit f84eb1a4be71e1d5803a5053877d99b7677dfc32
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon Dec 20 12:03:34 2021 +0100
Clean warnings
src/gui/app1/chronojump.cs | 7 ++++---
src/gui/app1/forceSensorAnalyze.cs | 2 +-
src/gui/app1/icons.cs | 2 +-
src/gui/app1/menu.cs | 2 +-
src/gui/app1/runEncoder.cs | 2 +-
src/gui/event.cs | 3 ++-
src/gui/forceSensorElasticBands.cs | 2 +-
src/gui/repetitiveConditions.cs | 4 +---
src/gui/webcam.cs | 8 +++++---
9 files changed, 17 insertions(+), 15 deletions(-)
---
diff --git a/src/gui/app1/chronojump.cs b/src/gui/app1/chronojump.cs
index 3bcbba757..2dffa9038 100644
--- a/src/gui/app1/chronojump.cs
+++ b/src/gui/app1/chronojump.cs
@@ -8342,9 +8342,10 @@ LogB.Debug("mc finished 5");
sensitiveLastTestButtons(! execute);
}
- private void showHideActionEventButtons(bool show, string type) {
- bool success = false;
- bool recordedVideo = false;
+ private void showHideActionEventButtons(bool show, string type)
+ {
+ //bool success = false;
+ //bool recordedVideo = false;
if(type == "ALL" || type == "Jump") {
button_edit_selected_jump.Sensitive = show;
diff --git a/src/gui/app1/forceSensorAnalyze.cs b/src/gui/app1/forceSensorAnalyze.cs
index 857292eaa..fa5f622df 100644
--- a/src/gui/app1/forceSensorAnalyze.cs
+++ b/src/gui/app1/forceSensorAnalyze.cs
@@ -1426,7 +1426,7 @@ public partial class ChronoJumpWindow
// 2b) draw horizontal 0 line on elastic, and Y right axis
if(fsAI.CalculedElasticPSAP)
{
- int yPx = fsAI.FscAIPoints.GetForceInPx(0);
+ //int yPx = fsAI.FscAIPoints.GetForceInPx(0);
layout_force_ai_text.SetMarkup("Displ (m)");
layout_force_ai_text.GetPixelSize(out textWidth, out textHeight);
diff --git a/src/gui/app1/icons.cs b/src/gui/app1/icons.cs
index 4534efb39..47d1dc2e5 100644
--- a/src/gui/app1/icons.cs
+++ b/src/gui/app1/icons.cs
@@ -31,7 +31,7 @@ public partial class ChronoJumpWindow
[Widget] Gtk.Image image_logo_icon_transp;
//[Widget] Gtk.Image image_home;
//[Widget] Gtk.Image image_home1;
- [Widget] Gtk.Image image_minimize;
+ //[Widget] Gtk.Image image_minimize;
//[Widget] Gtk.Image image_minimize1;
[Widget] Gtk.Image image_session_delete;
[Widget] Gtk.Image app1s_image_button_close;
diff --git a/src/gui/app1/menu.cs b/src/gui/app1/menu.cs
index 6ae7cb256..1fee3b411 100644
--- a/src/gui/app1/menu.cs
+++ b/src/gui/app1/menu.cs
@@ -177,7 +177,7 @@ public partial class ChronoJumpWindow
l.Add(vbox_person_manage_create.SizeRequest().Width);
l.Add(vbox_person_manage_load.SizeRequest().Width);
- int maxWidth = getMenuButtonsMaxWidth(l) + 4 + 6; //4, 6 are alignments spaces.
+ //int maxWidth = getMenuButtonsMaxWidth(l) + 4 + 6; //4, 6 are alignments spaces.
/*
LogB.Information(string.Format("viewport_persons: {0}",
viewport_persons.SizeRequest().Width));
diff --git a/src/gui/app1/runEncoder.cs b/src/gui/app1/runEncoder.cs
index ec089cbde..c40cd61a8 100644
--- a/src/gui/app1/runEncoder.cs
+++ b/src/gui/app1/runEncoder.cs
@@ -1764,7 +1764,7 @@ public partial class ChronoJumpWindow
private void on_combo_run_encoder_exercise_changed(object o, EventArgs args)
{
- ComboBox combo = o as ComboBox;
+ //ComboBox combo = o as ComboBox;
if (o == null)
return;
diff --git a/src/gui/event.cs b/src/gui/event.cs
index c8320c643..2b21f9afe 100644
--- a/src/gui/event.cs
+++ b/src/gui/event.cs
@@ -327,7 +327,8 @@ public class EditEventWindow
//using ffmpeg
Webcam webcam = new WebcamFfmpeg (Webcam.Action.PLAYFILE, UtilAll.GetOSEnum(), "",
"", "", "");
- Webcam.Result result = webcam.PlayFile (videoFileName);
+ //Webcam.Result result = webcam.PlayFile (videoFileName);
+ webcam.PlayFile (videoFileName);
}
}
diff --git a/src/gui/forceSensorElasticBands.cs b/src/gui/forceSensorElasticBands.cs
index 32cbc464e..9b9879087 100644
--- a/src/gui/forceSensorElasticBands.cs
+++ b/src/gui/forceSensorElasticBands.cs
@@ -65,7 +65,7 @@ public class ForceSensorElasticBandsWindow
[Widget] Gtk.TextView textview_delete;
[Widget] Gtk.Image image_close;
- [Widget] Gtk.Button button_close;
+ //[Widget] Gtk.Button button_close;
[Widget] Gtk.Button fakeButton_stiffness_changed;
diff --git a/src/gui/repetitiveConditions.cs b/src/gui/repetitiveConditions.cs
index 9849d4b29..f773ea009 100644
--- a/src/gui/repetitiveConditions.cs
+++ b/src/gui/repetitiveConditions.cs
@@ -118,7 +118,7 @@ public class RepetitiveConditionsWindow
[Widget] Gtk.Button button_test_good;
- [Widget] Gtk.Button button_test_bad;
+ //[Widget] Gtk.Button button_test_bad;
[Widget] Gtk.Label label_test_sound_result;
[Widget] Gtk.Button button_close;
@@ -139,7 +139,6 @@ public class RepetitiveConditionsWindow
[Widget] Gtk.Image image_encoder_power_higher;
[Widget] Gtk.Image image_encoder_peakpower_higher;
[Widget] Gtk.Image image_repetitive_test_good;
- [Widget] Gtk.Image image_repetitive_test_good1;
//bells bad (red)
[Widget] Gtk.Image image_repetitive_worst_tf_tc;
[Widget] Gtk.Image image_repetitive_worst_time;
@@ -157,7 +156,6 @@ public class RepetitiveConditionsWindow
[Widget] Gtk.Image image_encoder_power_lower;
[Widget] Gtk.Image image_encoder_peakpower_lower;
[Widget] Gtk.Image image_repetitive_test_bad;
- [Widget] Gtk.Image image_repetitive_test_bad1;
//encoder rhythm
[Widget] Gtk.Label label_rhythm_tab;
diff --git a/src/gui/webcam.cs b/src/gui/webcam.cs
index 5b0a4454e..9578f7cfd 100644
--- a/src/gui/webcam.cs
+++ b/src/gui/webcam.cs
@@ -122,7 +122,7 @@ public partial class ChronoJumpWindow
button_video_contacts_preview_visible (guiContactsEncoder, false);
- string errorMessage = "";
+ //string errorMessage = "";
if(ncams == 1)
{
if(! webcamManage.RecordPrepare(preferences.videoDevice,
preferences.videoDevicePixelFormat,
@@ -721,7 +721,8 @@ public partial class ChronoJumpWindow
//constructor for playpreview
webcamPlay = new WebcamFfmpeg (Webcam.Action.PLAYPREVIEW, UtilAll.GetOSEnum(),
preferences.videoDevice,
preferences.videoDevicePixelFormat, preferences.videoDeviceResolution,
preferences.videoDeviceFramerate);
- Webcam.Result result = webcamPlay.PlayPreviewNoBackground ();
+ //Webcam.Result result = webcamPlay.PlayPreviewNoBackground ();
+ webcamPlay.PlayPreviewNoBackground ();
}
/*
@@ -742,7 +743,8 @@ public partial class ChronoJumpWindow
{
//constructor for playpreview
webcamPlay = new WebcamFfmpeg (Webcam.Action.PLAYFILE, UtilAll.GetOSEnum(), "", "", "", "");
- Webcam.Result result = webcamPlay.PlayFile (fileName);
+ //Webcam.Result result = webcamPlay.PlayFile (fileName);
+ webcamPlay.PlayFile (fileName);
/*
* TODO: reimplement this with ffmpeg
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]