Skip to content

Commit 6414400

Browse files
committed
Remove some unused code (thanks @andymac-2)
1 parent 698b1c6 commit 6414400

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

RasterPropMonitor/Core/RasterPropMonitorComputer.cs

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
using System.Collections.Generic;
2323
using System.Text.RegularExpressions;
2424
using UnityEngine;
25-
using UnityEngine.Diagnostics;
26-
using UnityEngine.Profiling;
2725

2826
namespace JSI
2927
{
@@ -32,6 +30,11 @@ namespace JSI
3230
// onCrewBoardVessel
3331
// onCrewOnEva
3432
// onCrewTransferred
33+
34+
/// <summary>
35+
/// The computer for the pod. This class can be used for shared data across
36+
/// different screens in the same pod.
37+
/// </summary>
3538
public partial class RasterPropMonitorComputer : PartModule
3639
{
3740
// The only public configuration variable.
@@ -94,7 +97,6 @@ internal PeriodicRandomValue(int period_)
9497
// Data refresh
9598
private int dataUpdateCountdown;
9699
private int refreshDataRate = 60;
97-
private bool timeToUpdate = false;
98100

99101
// Diagnostics
100102
private int debug_fixedUpdates = 0;
@@ -311,10 +313,6 @@ private void ClearVariables()
311313
{
312314
sideSlipEvaluator = null;
313315
angleOfAttackEvaluator = null;
314-
315-
//forceCallbackRefresh = true;
316-
//variableCache.Clear();
317-
timeToUpdate = true;
318316
}
319317

320318
// provide a way for internal modules to remove themselves temporarily from InternalProps
@@ -585,8 +583,6 @@ void UpdateVariables()
585583

586584
++debug_fixedUpdates;
587585

588-
timeToUpdate = false;
589-
590586
Vessel v = vessel;
591587
for (int i = 0; i < activeTriggeredEvents.Count; ++i)
592588
{
@@ -620,7 +616,6 @@ public void Update()
620616
if (--dataUpdateCountdown < 0)
621617
{
622618
dataUpdateCountdown = refreshDataRate;
623-
timeToUpdate = true;
624619
UpdateVariables();
625620
}
626621
}

0 commit comments

Comments
 (0)