removed redundant code
This commit is contained in:
+1
-14
@@ -133,7 +133,7 @@ SQL.Table.prototype.addKey = function(name) {
|
|||||||
return k;
|
return k;
|
||||||
}
|
}
|
||||||
|
|
||||||
SQL.Table.prototype.removeKey = function(i) {
|
SQL.Table.prototype.removeKey = function(k) {
|
||||||
var idx = this.keys.indexOf(k);
|
var idx = this.keys.indexOf(k);
|
||||||
if (idx == -1) { return; }
|
if (idx == -1) { return; }
|
||||||
k.destroy();
|
k.destroy();
|
||||||
@@ -293,19 +293,6 @@ SQL.Table.prototype.findNamedRow = function(n) { /* return row with a given name
|
|||||||
return false;
|
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) {
|
SQL.Table.prototype.setComment = function(c) {
|
||||||
this.data.comment = c;
|
this.data.comment = c;
|
||||||
this.dom.title.title = this.data.comment;
|
this.dom.title.title = this.data.comment;
|
||||||
|
|||||||
Reference in New Issue
Block a user