aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-05-17 14:14:15 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-05-17 14:14:15 +0200
commitf2ac245c6c9b20905197c5d0f5ecbc9ed88fb1a2 (patch)
tree78a5a1f44c604f211ec4ee391542dd721a543e0f
parentc655f7c3a776f0e17172eea56b753b87f52916aa (diff)
Remove unused methods and types
-rw-r--r--units.go20
1 files changed, 0 insertions, 20 deletions
diff --git a/units.go b/units.go
index 3f655a6..9561749 100644
--- a/units.go
+++ b/units.go
@@ -54,24 +54,4 @@ func parseTriple(s string) (t Triple) {
return
}
-type Polar struct {
- R, Theta Unit
-}
-
type Path []Point
-
-func (p Point) Add(u Point) Point {
- return Point{p.X + u.X, p.Y + u.Y}
-}
-
-func (p Point) Sub(u Point) Point {
- return Point{p.X - u.X, p.Y - u.Y}
-}
-
-func (p Point) AddX(u Unit) Point {
- return Point{p.X + u, p.Y}
-}
-
-func (p Point) AddY(u Unit) Point {
- return Point{p.X, p.Y + u}
-}