From be3afd0becdff628c4e57c90b889210ae7db7a23 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Thu, 28 Jun 2012 03:47:40 +0200 Subject: [PATCH] doc: remove references to deprecated fs api The string-based versions of fs.read() and fs.write() have been deprecated since before v0.2.0. --- doc/api/fs.markdown | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/doc/api/fs.markdown b/doc/api/fs.markdown index 5abef14ba7a..170d2eb0dc1 100644 --- a/doc/api/fs.markdown +++ b/doc/api/fs.markdown @@ -355,13 +355,7 @@ without waiting for the callback. For this scenario, ## fs.writeSync(fd, buffer, offset, length, position) -Synchronous version of buffer-based `fs.write()`. Returns the number of bytes -written. - -## fs.writeSync(fd, str, position, [encoding]) - -Synchronous version of string-based `fs.write()`. `encoding` defaults to -`'utf8'`. Returns the number of _bytes_ written. +Synchronous version of `fs.write()`. Returns the number of bytes written. ## fs.read(fd, buffer, offset, length, position, [callback]) @@ -380,13 +374,7 @@ The callback is given the three arguments, `(err, bytesRead, buffer)`. ## fs.readSync(fd, buffer, offset, length, position) -Synchronous version of buffer-based `fs.read`. Returns the number of -`bytesRead`. - -## fs.readSync(fd, length, position, encoding) - -Legacy synchronous version of string-based `fs.read`. Returns an array with the -data from the file specified and number of bytes read, `[string, bytesRead]`. +Synchronous version of `fs.read`. Returns the number of `bytesRead`. ## fs.readFile(filename, [encoding], [callback])