Skip to content

Commit

Permalink
Eliminate unused parameters to slice_to() and assign_to()
Browse files Browse the repository at this point in the history
  • Loading branch information
ojwb committed Mar 14, 2016
1 parent a3e8604 commit fc2adaa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions compiler/generator_jsx.c
Expand Up @@ -826,14 +826,14 @@ static void generate_assignto(struct generator * g, struct node * p) {

write_comment(g, p);
g->V[0] = p->name;
writef(g, "~M~V0 = this.assign_to(~V0);~N", p);
writef(g, "~M~V0 = this.assign_to();~N", p);
}

static void generate_sliceto(struct generator * g, struct node * p) {

write_comment(g, p);
g->V[0] = p->name;
writef(g, "~M~V0 = this.slice_to(~V0);~N"
writef(g, "~M~V0 = this.slice_to();~N"
"~Mif (~V0 == '')~N"
"~M{~N"
"~+~Mreturn false;~N~-"
Expand Down
4 changes: 2 additions & 2 deletions jsx/base-stemmer.jsx
Expand Up @@ -319,7 +319,7 @@ class BaseStemmer extends Stemmer
}

/* Copy the slice into the supplied StringBuffer */
__noexport__ function slice_to (s : string) : string
__noexport__ function slice_to () : string
{
var result = '';
if (this.slice_check())
Expand All @@ -329,7 +329,7 @@ class BaseStemmer extends Stemmer
return result;
}

__noexport__ function assign_to (s : string) : string
__noexport__ function assign_to () : string
{
return this.current.slice(0, this.limit);
}
Expand Down

0 comments on commit fc2adaa

Please sign in to comment.