diff --git a/raylib/platform_desktop.go b/raylib/platform_desktop.go index 8b4e146..c01b84f 100644 --- a/raylib/platform_desktop.go +++ b/raylib/platform_desktop.go @@ -27,7 +27,6 @@ func InitWindow(width int32, height int32, title string) { // SetCallbackFunc - Sets callback function func SetCallbackFunc(func()) { - return } // ShowCursor - Shows cursor @@ -87,7 +86,6 @@ func LoadDroppedFiles() []string { // UnloadDroppedFiles - Unload dropped filepaths func UnloadDroppedFiles() { - return } // OpenAsset - Open asset diff --git a/raylib/raymath.go b/raylib/raymath.go index 0d4bbae..896f73c 100644 --- a/raylib/raymath.go +++ b/raylib/raymath.go @@ -174,8 +174,6 @@ func Vector3CrossProduct(v1, v2 Vector3) Vector3 { // Vector3Perpendicular - Calculate one vector perpendicular vector func Vector3Perpendicular(v Vector3) Vector3 { - result := Vector3{} - min := math.Abs(float64(v.X)) cardinalAxis := NewVector3(1.0, 0.0, 0.0) @@ -188,7 +186,7 @@ func Vector3Perpendicular(v Vector3) Vector3 { cardinalAxis = NewVector3(0.0, 0.0, 1.0) } - result = Vector3CrossProduct(v, cardinalAxis) + result := Vector3CrossProduct(v, cardinalAxis) return result }