diff --git a/chrome/content/vimperator/commands.js b/chrome/content/vimperator/commands.js index 0fe23af4..9ffee92f 100644 --- a/chrome/content/vimperator/commands.js +++ b/chrome/content/vimperator/commands.js @@ -120,21 +120,7 @@ Command.prototype.hasName = function(name) } return false; } - -Command.prototype.toString = function() -{ - return "Command {" + - "\n\tname: " + this.name + - "\n\tnames: " + this.names + - "\n\tshort_names: " + this.short_names + - "\n\tlong_names: " + this.long_names + - "\n\tusage: " + this.usage + - "\n\tshort_help: " + this.short_help + - "\n\thelp: " + this.help + - "\n\taction: " + this.action + - "\n\tcompleter: " + this.completer + - "\n}" -} //}}} +//}}} function Commands() //{{{ { diff --git a/chrome/content/vimperator/mappings.js b/chrome/content/vimperator/mappings.js index 81de194c..19d4160b 100644 --- a/chrome/content/vimperator/mappings.js +++ b/chrome/content/vimperator/mappings.js @@ -89,18 +89,7 @@ Map.prototype.execute = function(motion, count, argument) args.push(argument); this.action.apply(this, args); } - -Map.prototype.toString = function() -{ - return "Map {" + - "\n\tmode: " + this.mode + - "\n\tnames: " + this.names + - "\n\taction: " + this.action + - "\n\tusage: " + this.usage + - "\n\tshort_help: " + this.short_help + - "\n\thelp: " + this.help + - "\n}" -} //}}} +//}}} function Mappings() //{{{ { diff --git a/chrome/content/vimperator/options.js b/chrome/content/vimperator/options.js index f991dec3..23f397b9 100644 --- a/chrome/content/vimperator/options.js +++ b/chrome/content/vimperator/options.js @@ -90,23 +90,6 @@ function Option(names, type, extra_info) //{{{ } return false; } - - this.toString = function() - { - return "Option {" + - "\n\tname: " + this.name + - "\n\tnames: " + this.names + - "\n\tusage: " + this.usage + - "\n\tshort_help: " + this.short_help + - "\n\thelp: " + this.help + - "\n\ttype: " + this.type + - "\n\tvalue: " + this.value + - "\n\tgetter: " + this.getter + - "\n\tsetter: " + this.setter + - "\n\tcompleter: " + this.completer + - "\n\tvalidator: " + this.validator + - "\n}" - } } //}}} function Options() //{{{ @@ -263,14 +246,6 @@ function Options() //{{{ return null; } - this.toString = function() - { - str = ""; - for (var i = 0; i < options.length; i++) - str += "\n\t" + options[i].name + "=" + options[i].value; - return "Options {" + str + "\n}" - } - // TODO: separate Preferences from Options? Would these utility functions // be better placed in the 'core' vimperator namespace somewhere? Options.setPref = function(name, value)