Bug 671029 (followup): Remove unused size parameter and uninitialized var warning (rs=jwalden)

This commit is contained in:
Paul Biggar 2011-07-18 14:32:47 -07:00
parent cbfbadfaa5
commit 18dc5aa5c4

View File

@ -398,7 +398,7 @@ SetContextOptions(JSContext *cx)
* is meaningless for UTF-8) but causes a syntax error unless we skip it. * is meaningless for UTF-8) but causes a syntax error unless we skip it.
*/ */
static void static void
SkipUTF8BOM(FILE* file, size_t size) SkipUTF8BOM(FILE* file)
{ {
if (!js_CStringsAreUTF8) if (!js_CStringsAreUTF8)
return; return;
@ -452,7 +452,7 @@ Process(JSContext *cx, JSObject *obj, char *filename, JSBool forceTTY)
if (!forceTTY && !isatty(fileno(file))) if (!forceTTY && !isatty(fileno(file)))
{ {
SkipUTF8BOM(file, size); SkipUTF8BOM(file);
/* /*
* It's not interactive - just execute it. * It's not interactive - just execute it.