Everytime I open a particular project I’m working on I’m getting the following warning about a deprecation:
This class is using a deprecated type of constructor. It is recommended that you update this.
The class in question (Transform
) has four constructors (one private). Clicking “Resolve” in the dialog box doesn’t fix the issue on next launch. No warnings are displayed when I analyse the project. Personally, I don’t see an issue with any of the constructors. Here are the four method signatures:
Public Sub Constructor()
// This method has no code
End Sub
Private Sub Constructor(cost As Double, sint As Double, x As Double, y As Double)
Self.Cost = cost
Self.Sint = sint
Self.X = x
Self.Y = y
End Sub
Public Sub Constructor(t As PhysicsKit.Transform)
Self.Cost = t.Cost
Self.Sint = t.Sint
Self.X = t.X
Self.Y = t.Y
End Sub
Public Sub Constructor(vector As PhysicsKit.Vector2)
Var x As Double = vector.X
Var y As Double = vector.Y
vector.X = Self.Cost * x - Self.Sint * y + Self.X
vector.Y = Self.Sint * x + Self.Cost * y + Self.Y
End Sub
Any idea why I’m getting an error on launch?