removed redundant code

This commit is contained in:
Ondrej Zara
2015-11-09 09:01:12 +01:00
parent 921ccb4b21
commit 01eb10c042
+1 -14
View File
@@ -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;