1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-29 18:52:18 +01:00

Contacts: Remove unneeded assertion function

This commit is contained in:
Thomas Tanghus 2012-11-15 20:34:54 +01:00
parent 7cf2974e0c
commit 16e1db3113

View File

@ -52,19 +52,6 @@ utils.moveCursorToEnd = function(el) {
}
}
function AssertException(message) { this.message = message; }
AssertException.prototype.toString = function () {
return 'AssertException: ' + this.message;
}
// Usage: assert(obj != null, 'Object is null');
function assert(exp, message) {
if (!exp) {
throw new AssertException(message);
}
}
if (typeof Object.create !== 'function') {
Object.create = function (o) {
function F() {}