Skip to content

Commit

Permalink
Removed unnecessary console.error statements
Browse files Browse the repository at this point in the history
Fixes #27

h/t Sebmaster for pointing this out
  • Loading branch information
redchair123 committed Oct 10, 2013
1 parent de0b6e4 commit 1625534
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
3 changes: 0 additions & 3 deletions bits/70_xlsx.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,6 @@ function parseProps(data) {
switch(v[i].v) {
case "Worksheets": widx = j; p.Worksheets = +v[++i]; break;
case "Named Ranges": ++i; break; // TODO: Handle Named Ranges
default: console.error("Unrecognized key in Heading Pairs: " + v[i++].v);
}
}
var parts = parseVector(q.TitlesOfParts).map(utf8read);
Expand Down Expand Up @@ -357,8 +356,6 @@ function parseWB(data) {
case '<mx:ArchID': break;
case '<mc:AlternateContent': pass=true; break;
case '</mc:AlternateContent>': pass=false; break;

default: if(!pass) console.error("WB Tag",x,y);
}
});
if(wb.xmlns !== XMLNS_WB) throw "Unknown Namespace: " + wb.xmlns;
Expand Down
5 changes: 1 addition & 4 deletions xlsx.js
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,6 @@ function parseProps(data) {
switch(v[i].v) {
case "Worksheets": widx = j; p.Worksheets = +v[++i]; break;
case "Named Ranges": ++i; break; // TODO: Handle Named Ranges
default: console.error("Unrecognized key in Heading Pairs: " + v[i++].v);
}
}
var parts = parseVector(q.TitlesOfParts).map(utf8read);
Expand Down Expand Up @@ -787,8 +786,6 @@ function parseWB(data) {
case '<mx:ArchID': break;
case '<mc:AlternateContent': pass=true; break;
case '</mc:AlternateContent>': pass=false; break;

default: if(!pass) console.error("WB Tag",x,y);
}
});
if(wb.xmlns !== XMLNS_WB) throw "Unknown Namespace: " + wb.xmlns;
Expand Down Expand Up @@ -1038,7 +1035,7 @@ function sheet_to_csv(sheet) {
var row = [];
for(var C = r.s.c; C <= r.e.c; ++C) {
var val = sheet[utils.encode_cell({c:C,r:R})];
row.push(val ? stringify(val).replace(/\\r\\n/g,"\n").replace(/\\t/g,"\t").replace(/\\\\/g,"\\").replace(/\\\"/g,"\"\"") : "");
row.push(val ? stringify(val).replace(/\\r\\n/g,"\n").replace(/\\t/g,"\t").replace(/\\\\/g,"\\").replace("\\\"","\"\"") : "");
}
out += row.join(",") + "\n";
}
Expand Down

0 comments on commit 1625534

Please sign in to comment.