From e9980c1558983aa6ba91b829b8bd3f2f52bd93f4 Mon Sep 17 00:00:00 2001 From: Andreas Gal Date: Sat, 18 Jun 2011 01:18:21 -0700 Subject: [PATCH] remove toString code to avoid any future accidental implicit conversions --- pdf.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/pdf.js b/pdf.js index cc866c174..9c4344fab 100644 --- a/pdf.js +++ b/pdf.js @@ -5,7 +5,6 @@ var ERRORS = 0, WARNINGS = 1, TODOS = 5; var verbosity = WARNINGS; function log(msg) { - msg = msg.toString ? msg.toString() : msg; if (console && console.log) console.log(msg); else if (print) @@ -523,9 +522,6 @@ var Name = (function() { } constructor.prototype = { - toString: function() { - return this.name; - } }; return constructor; @@ -537,9 +533,6 @@ var Cmd = (function() { } constructor.prototype = { - toString: function() { - return this.cmd; - } }; return constructor; @@ -566,12 +559,6 @@ var Dict = (function() { forEach: function(aCallback) { for (var key in this.map) aCallback(key, this.map[key]); - }, - toString: function() { - var keys = []; - for (var key in this.map) - keys.push(key); - return "Dict with " + keys.length + " keys: " + keys; } };