Skip to content

Commit 75696e0

Browse files
committed
remove unused vessel guid stuff
1 parent f4edf2b commit 75696e0

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

RasterPropMonitor/Auxiliary modules/JSIVariableLabel.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,6 @@ public class JSIVariableLabel : InternalModule
5353
private Action<float> del;
5454
private StringProcessorFormatter spf;
5555
private RasterPropMonitorComputer rpmComp;
56-
/// <summary>
57-
/// The Guid of the vessel we belonged to at Start. When undocking,
58-
/// KSP will change the vessel member variable before calling OnDestroy,
59-
/// which prevents us from getting the RPMVesselComputer we registered
60-
/// with. So we have to store the Guid separately.
61-
/// </summary>
62-
private Guid registeredVessel = Guid.Empty;
6356

6457
public void Start()
6558
{
@@ -100,7 +93,6 @@ public void Start()
10093
zeroColorValue = JUtil.ParseColor32(zeroColor, rpmComp);
10194
del = (Action<float>)Delegate.CreateDelegate(typeof(Action<float>), this, "OnCallback");
10295
rpmComp.RegisterVariableCallback(variableName, del);
103-
registeredVessel = vessel.id;
10496

10597
// Initialize the text color. Actually, callback registration took care of that
10698
}

0 commit comments

Comments
 (0)