Skip to content

Commit 530ae10

Browse files
author
Lauren McCarthy
committed
removing remaining i/o methods that throw errors closes #40
1 parent 3d56c74 commit 530ae10

File tree

1 file changed

+0
-82
lines changed

1 file changed

+0
-82
lines changed

src/io/files.js

Lines changed: 0 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -156,21 +156,6 @@ p5.prototype.loadFont = function (path, onSuccess, onError) {
156156
return p5Font;
157157
};
158158

159-
//BufferedReader
160-
p5.prototype.createInput = function () {
161-
// TODO
162-
throw 'not yet implemented';
163-
};
164-
165-
p5.prototype.createReader = function () {
166-
// TODO
167-
throw 'not yet implemented';
168-
};
169-
170-
p5.prototype.loadBytes = function () {
171-
// TODO
172-
throw 'not yet implemented';
173-
};
174159

175160
/**
176161
* Loads a JSON file from a file or a URL, and returns an Object or Array.
@@ -756,23 +741,6 @@ p5.prototype.loadXML = function() {
756741
return ret;
757742
};
758743

759-
// name clash with window.open
760-
// p5.prototype.open = function() {
761-
// // TODO
762-
763-
// };
764-
765-
p5.prototype.selectFolder = function () {
766-
// TODO
767-
throw 'not yet implemented';
768-
769-
};
770-
771-
p5.prototype.selectInput = function () {
772-
// TODO
773-
throw 'not yet implemented';
774-
775-
};
776744

777745
/**
778746
* Method for executing an HTTP GET request. If data type is not specified,
@@ -998,23 +966,6 @@ window.URL = window.URL || window.webkitURL;
998966
// private array of p5.PrintWriter objects
999967
p5.prototype._pWriters = [];
1000968

1001-
p5.prototype.beginRaw = function () {
1002-
// TODO
1003-
throw 'not yet implemented';
1004-
1005-
};
1006-
1007-
p5.prototype.beginRecord = function () {
1008-
// TODO
1009-
throw 'not yet implemented';
1010-
1011-
};
1012-
1013-
p5.prototype.createOutput = function () {
1014-
// TODO
1015-
1016-
throw 'not yet implemented';
1017-
};
1018969

1019970
p5.prototype.createWriter = function (name, extension) {
1020971
var newPW;
@@ -1034,17 +985,6 @@ p5.prototype.createWriter = function (name, extension) {
1034985
return newPW;
1035986
};
1036987

1037-
p5.prototype.endRaw = function () {
1038-
// TODO
1039-
1040-
throw 'not yet implemented';
1041-
};
1042-
1043-
p5.prototype.endRecord = function () {
1044-
// TODO
1045-
throw 'not yet implemented';
1046-
1047-
};
1048988

1049989
p5.PrintWriter = function (filename, extension) {
1050990
var self = this;
@@ -1077,12 +1017,6 @@ p5.PrintWriter = function (filename, extension) {
10771017
};
10781018
};
10791019

1080-
p5.prototype.saveBytes = function () {
1081-
// TODO
1082-
throw 'not yet implemented';
1083-
1084-
};
1085-
10861020
// object, filename, options --> saveJSON, saveStrings,
10871021
// filename, [extension] [canvas] --> saveImage
10881022

@@ -1256,11 +1190,6 @@ p5.prototype.saveJSON = function (json, filename, opt) {
12561190
p5.prototype.saveJSONObject = p5.prototype.saveJSON;
12571191
p5.prototype.saveJSONArray = p5.prototype.saveJSON;
12581192

1259-
p5.prototype.saveStream = function () {
1260-
// TODO
1261-
throw 'not yet implemented';
1262-
1263-
};
12641193

12651194
/**
12661195
* Writes an array of Strings to a text file, one line per String.
@@ -1306,17 +1235,6 @@ p5.prototype.saveStrings = function (list, filename, extension) {
13061235
pWriter.flush();
13071236
};
13081237

1309-
p5.prototype.saveXML = function () {
1310-
// TODO
1311-
throw 'not yet implemented';
1312-
1313-
};
1314-
1315-
p5.prototype.selectOutput = function () {
1316-
// TODO
1317-
throw 'not yet implemented';
1318-
1319-
};
13201238

13211239
// =======
13221240
// HELPERS

0 commit comments

Comments
 (0)