summaryrefslogtreecommitdiffstats
path: root/js/table.js
diff options
context:
space:
mode:
authorOndrej Zara <ondrej.zara@firma.seznam.cz>2015-11-09 09:01:12 +0100
committerOndrej Zara <ondrej.zara@firma.seznam.cz>2015-11-09 09:01:12 +0100
commit01eb10c0429a49136afa2ec4f1616a6dd713ba55 (patch)
tree66737a400aee4468a143057716a26ac1413b25ab /js/table.js
parent921ccb4b2139f6239da2ad76f07217775c281ea8 (diff)
downloadwwwsqldesigner-01eb10c0429a49136afa2ec4f1616a6dd713ba55.zip
wwwsqldesigner-01eb10c0429a49136afa2ec4f1616a6dd713ba55.tar.gz
wwwsqldesigner-01eb10c0429a49136afa2ec4f1616a6dd713ba55.tar.bz2
removed redundant code
Diffstat (limited to 'js/table.js')
-rw-r--r--js/table.js15
1 files changed, 1 insertions, 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;