don't update file dates

this was originally implemented because we wanted to delete the oldest images on disk
where 'oldest' means not *used* for the longest time

that's not useful and was never actually implemented, so we don't need this
This commit is contained in:
jomo
2015-08-30 04:48:50 +02:00
parent 78f2f2027f
commit 755cc74170
3 changed files with 5 additions and 34 deletions

View File

@@ -204,14 +204,6 @@ describe("Crafatar", function() {
});
});
});
it("should ignore file updates on invalid files", function(done) {
assert.doesNotThrow(function() {
cache.update_timestamp(rid, "0123456789abcdef0123456789abcdef", "invalid-file.png", false, function(err) {
assert.ifError(err);
done();
});
});
});
it("should not find the file", function(done) {
skins.open_skin(rid, "non/existent/path", function(err, img) {
assert(err);