remove some dead code

This commit is contained in:
ansuz
2017-04-07 12:17:40 +02:00
parent e87992c7ec
commit fdede0d1fd
2 changed files with 0 additions and 79 deletions

View File

@@ -9,39 +9,6 @@ define([
Cryptpad: Cryptpad,
};
var then = function (call) {
call.getFileSize('26f014b2ab959418605ea37a6785f317', function (e, msg) {
if (e) {
if (e === 'ENOENT') { return; }
return void console.error(e);
}
console.error("EXPECTED ENOENT");
console.log(msg);
});
call.getFileSize('pewpew', function (e, msg) {
if (e) {
if (e === 'INVALID_CHAN') { return; }
return void console.error(e);
}
console.log(msg);
});
var list = Cryptpad.getUserChannelList();
if (list.length) {
call.getFileSize(list[0], function (e, msg) {
if (e) {
return void console.error(e);
}
console.log(msg);
});
}
call.getServerHash(function (e, hash) {
if (e) { return void console.error(e); }
console.log("the server believes your user hash is [%s]", hash);
});
};
var synchronize = function (call) {
var localHash = call.localChannelsHash();
var serverHash;
@@ -65,12 +32,6 @@ define([
return console.log('reset pin list. new hash is [%s]', response);
}
});
/*
console.log(JSON.stringify({
local: localHash,
remote: serverHash,
}, null, 2));*/
});
};
@@ -78,7 +39,6 @@ define([
Cryptpad.ready(function (err, env) {
Pinpad.create(function (e, call) {
if (e) { return void console.error(e); }
// then(call);
synchronize(call);
});
});