Remove unused util.recipient_key() function.

(imported from commit cee6a58344971ee1439e6b66ec301f1bd0f80502)
This commit is contained in:
Steve Howell
2014-03-13 10:13:01 -04:00
committed by Leo Franchi
parent 50bc5401a4
commit 0e129614cf
2 changed files with 0 additions and 22 deletions

View File

@@ -67,20 +67,6 @@ var util = global.util;
));
}());
(function test_recipient_key() {
var message;
message = {type: 'stream', stream: 'Foo', subject: 'BAR'};
assert.equal(util.recipient_key(message), 'foo>bar');
global.$.trim = function (s) {
return s.trim();
};
message = {type: 'private', reply_to: ' bob@example.com, alice@example.com '};
assert.equal(util.recipient_key(message), 'alice@example.com,bob@example.com');
}());
(function test_robust_uri_decode() {
assert.equal(util.robust_uri_decode('xxx%3Ayyy'), 'xxx:yyy');
assert.equal(util.robust_uri_decode('xxx%3'), 'xxx');