Skip to content

Commit

Permalink
Merge pull request #269 from zobalogh/master
Browse files Browse the repository at this point in the history
Removing orphaned function: localfilesystem.writeFile(root,path,meta,body,res)
  • Loading branch information
knolleary committed Jul 15, 2014
2 parents debd5c4 + 4a514b9 commit d67074f
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions red/storage/localfilesystem.js
Expand Up @@ -123,23 +123,6 @@ function getFileBody(root,path) {
return body;
}

function writeFile(root,path,meta,body,res) {
var fn = fspath.join(root,path);
var headers = "";
for (var i in meta) {
if (meta.hasOwnProperty(i)) {
headers += "// "+i+": "+meta[i]+"\n";
}
}
mkdirp(fspath.dirname(fn), function (err) {
fs.writeFile(fn,headers+body,function(err) {
//TODO: handle error
res.writeHead(204, {'Content-Type': 'text/plain'});
res.end();
});
});
}

var localfilesystem = {
init: function(_settings) {
settings = _settings;
Expand Down

0 comments on commit d67074f

Please sign in to comment.