From 0dea46b0b5c48ff4ccfe9037dbd44e28ffe76852 Mon Sep 17 00:00:00 2001 From: Matthias Richter Date: Fri, 15 Jun 2018 17:41:31 +0200 Subject: [PATCH] Fix #104: Undo aa81292 --- vector-light.lua | 4 ---- vector.lua | 5 ----- 2 files changed, 9 deletions(-) diff --git a/vector-light.lua b/vector-light.lua index 286f6d2..6fb20d2 100644 --- a/vector-light.lua +++ b/vector-light.lua @@ -38,10 +38,6 @@ local function div(s, x,y) return x/s, y/s end -local function idiv(s, x,y) - return x//s, y//s -end - local function add(x1,y1, x2,y2) return x1+x2, y1+y2 end diff --git a/vector.lua b/vector.lua index 9a1a46e..2d75d62 100644 --- a/vector.lua +++ b/vector.lua @@ -97,11 +97,6 @@ function vector.__div(a,b) return new(a.x / b, a.y / b) end -function vector.__idiv(a,b) - assert(isvector(a) and type(b) == "number", "wrong argument types (expected / )") - return new(a.x // b, a.y // b) -end - function vector.__eq(a,b) return a.x == b.x and a.y == b.y end