about summary refs log tree commit diff stats
path: root/app.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2023-04-09 19:01:33 -0700
committerKartik K. Agaram <vc@akkartik.com>2023-04-09 19:09:31 -0700
commitd61ccafaa0ba22d93ace0e3c698ef5e81a0f1e51 (patch)
tree05974148ff972d8f9eb33614aff3c4fd054945f3 /app.lua
parent4b43e9e85d985bcedd105fa9693ae751e5b6d0b6 (diff)
downloadlines.love-d61ccafaa0ba22d93ace0e3c698ef5e81a0f1e51.tar.gz
include a brief reference enabling many useful apps
Diffstat (limited to 'app.lua')
-rw-r--r--app.lua12
1 files changed, 0 insertions, 12 deletions
diff --git a/app.lua b/app.lua
index b883a75..53a133f 100644
--- a/app.lua
+++ b/app.lua
@@ -214,17 +214,6 @@ function App.width(text)
   return love.graphics.getFont():getWidth(text)
 end
 
-function App.screen.draw(obj, x,y)
-  if type(obj) == 'userdata' then
-    -- ignore most things as graphics the test harness can't handle
-  elseif obj.type == 'text' then
-    App.screen.print(obj.data, x,y)
-  else
-    print(obj.type)
-    assert(false)
-  end
-end
-
 App.clipboard = ''
 function App.getClipboardText()
   return App.clipboard
@@ -415,7 +404,6 @@ function App.disable_tests()
   App.screen.move = love.window.setPosition
   App.screen.position = love.window.getPosition
   App.screen.print = love.graphics.print
-  App.screen.draw = love.graphics.draw
   if Current_app == nil or Current_app == 'run' then
     App.open_for_reading = function(filename) return io.open(filename, 'r') end
     App.open_for_writing = function(filename) return io.open(filename, 'w') end