From 01eb10c0429a49136afa2ec4f1616a6dd713ba55 Mon Sep 17 00:00:00 2001 From: Ondrej Zara Date: Mon, 9 Nov 2015 09:01:12 +0100 Subject: [PATCH] removed redundant code --- js/table.js | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/js/table.js b/js/table.js index 1b20f20..099881d 100644 --- a/js/table.js +++ b/js/table.js @@ -133,7 +133,7 @@ SQL.Table.prototype.addKey = function(name) { return k; } -SQL.Table.prototype.removeKey = function(i) { +SQL.Table.prototype.removeKey = function(k) { var idx = this.keys.indexOf(k); if (idx == -1) { return; } k.destroy(); @@ -293,19 +293,6 @@ SQL.Table.prototype.findNamedRow = function(n) { /* return row with a given name return false; } -SQL.Table.prototype.addKey = function(type, name) { - var i = new SQL.Key(this, type, name); - this.keys.push(i); - return i; -} - -SQL.Table.prototype.removeKey = function(i) { - var idx = this.keys.indexOf(i); - if (idx == -1) { return; } - i.destroy(); - this.keys.splice(idx,1); -} - SQL.Table.prototype.setComment = function(c) { this.data.comment = c; this.dom.title.title = this.data.comment;