Skip to content

Commit

Permalink
Removed debugging console output that should never have released.
Browse files Browse the repository at this point in the history
  • Loading branch information
metafloor committed Sep 21, 2015
1 parent c05089c commit fb03fa3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 17 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ the end of this document.

## Status

* Current bwip-js version is 0.14.0 (07-Sep-2015)
* Current bwip-js version is 0.14.1 (21-Sep-2015)
* Current BWIPP version is 2015-08-10
* Node.js compatibility >= v0.10 (reported to work with v0.8 but not tested).
* npm dependencies: none
Expand Down
8 changes: 2 additions & 6 deletions bwip.js
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,6 @@ BWIPJS.prototype.charpath = function(str, b) {
this.rlineto(0, sw.a);
this.rlineto(sw.w, 0);
this.rlineto(0, -sw.h);
BWIPJS.debug('charpath(' + sw.a + ',' + sw.h + ')');
}
BWIPJS.prototype.pathbbox = function() {
BWIPJS.logapi('pathbbox', arguments);
Expand All @@ -601,7 +600,6 @@ BWIPJS.prototype.pathbbox = function() {
lly:(lly-this.g_tdy)/this.g_tsy,
urx:(urx-this.g_tdx)/this.g_tsx,
ury:(ury-this.g_tdy)/this.g_tsy };
BWIPJS.debug('pathbox' + JSON.stringify(rv));
return rv;
}
BWIPJS.prototype.gsave = function() {
Expand Down Expand Up @@ -791,8 +789,8 @@ BWIPJS.prototype.gclone = function(o) {

if (o instanceof Object) {
var t = {};
for (i in o)
t[i] = this.gclone(o[i]);
for (var id in o)
t[id] = this.gclone(o[id]);
return t;
}
return o;
Expand All @@ -812,8 +810,6 @@ BWIPJS.prototype.gclone = function(o) {
// it better connects one line with the next.
BWIPJS.prototype.drawline = function(optmz, x1, y1, x2, y2, penx, peny, merge) {
BWIPJS.logapi('drawline', arguments);
console.log('x1,y1,x2,y2=' + x1 + ',' + y1 + ',' + x2 + ',' + y2);
console.log('optmz,penx,peny=' + optmz + ',' + penx + ',' + peny);
if (optmz && (x1 == x2 || y1 == y2)) {
var lx = Math.round(penx);
var ly = Math.round(peny);
Expand Down
9 changes: 0 additions & 9 deletions bwipp/renlinear.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,15 +125,6 @@ BWIPJS.bwipp["renlinear"]=function() {
this.ptr-=3;
}
function $f5(){
var t=this.dstk.get("sbs");
if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t;
var t=this.dstk.get("i");
if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t;
if (this.stk[this.ptr-2] instanceof BWIPJS.psstring || this.stk[this.ptr-2] instanceof BWIPJS.psarray)
this.stk[this.ptr-2]=this.stk[this.ptr-2].get(this.stk[this.ptr-1]);
else this.stk[this.ptr-2]=this.stk[this.ptr-2][this.stk[this.ptr-1].toString()];
this.ptr--;
this.print(BWIPJS.pstostring(this.stk[--this.ptr]));
this.stk[this.ptr++]="d";
var t=this.dstk.get("sbs");
if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bwip-js",
"version": "0.14.0",
"version": "0.14.1",
"description": "Barcode generator supporting over 90 types and standards.",
"main": "node-bwipjs",
"scripts": {
Expand Down

0 comments on commit fb03fa3

Please sign in to comment.