Remove dead code

This commit is contained in:
Ivan Danyliuk 2018-10-20 21:39:20 +02:00
parent 2edebc99c3
commit e8e4765236
No known key found for this signature in database
GPG Key ID: 97ED33CE024E1DBF

View File

@ -5,8 +5,6 @@ import (
"time" "time"
"github.com/divan/graphx/layout" "github.com/divan/graphx/layout"
"github.com/gopherjs/gopherjs/js"
) )
const ( const (
@ -72,15 +70,6 @@ func (w *Wobbling) changeDirection() {
} }
} }
// moveRandom randomly moves the three.js object to given distance.
// TODO(divan): use Mesh's Position?
func moveRandom(obj *js.Object, d *Direction) {
pos := obj.Get("position")
pos.Set("x", pos.Get("x").Float()+d.X)
pos.Set("y", pos.Get("y").Float()+d.Y)
pos.Set("z", pos.Get("z").Float()+d.Z)
}
type Direction struct { type Direction struct {
X, Y, Z float64 X, Y, Z float64
} }