Skip to content

Commit

Permalink
OSC API - remove /save-and-run-buffer-via-local-file
Browse files Browse the repository at this point in the history
This needs a lot more thought w.r.t. the implications of all editing functionality such as whitespace tidying, snippet insertion and future AST manipulation
  • Loading branch information
samaaron committed Sep 3, 2016
1 parent 36f1e36 commit 16a55e7
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions app/server/bin/sonic-pi-server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -140,16 +140,6 @@
sp.__spider_eval code
end

osc_server.add_method("/save-and-run-buffer-via-local-file") do |args|
gui_id = args[0]
buffer_id = args[1]
path = args[2].force_encoding("utf-8")
code = File.read(File.expand_path(path.to_s))
workspace = args[3]
sp.__save_buffer(buffer_id, code)
sp.__spider_eval code, {workspace: workspace}
end

osc_server.add_method("/save-and-run-buffer") do |args|
gui_id = args[0]
buffer_id = args[1]
Expand Down

0 comments on commit 16a55e7

Please sign in to comment.