Skip to content

Commit

Permalink
Remove unused argument
Browse files Browse the repository at this point in the history
  • Loading branch information
linas committed Mar 27, 2024
1 parent 49bd95c commit d96da4d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions link-grammar/connectors.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ void set_connector_farthest_word(Exp *e, int w, int sent_length,
}
}

Connector * connector_new(Pool_desc *connector_pool, const condesc_t *desc,
Parse_Options opts)
Connector * connector_new(Pool_desc *connector_pool, const condesc_t *desc)
{
Connector *c;

Expand Down
2 changes: 1 addition & 1 deletion link-grammar/connectors.h
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ static inline unsigned int connector_uc_num(const Connector * c)


/* Connector utilities ... */
Connector * connector_new(Pool_desc *, const condesc_t *, Parse_Options);
Connector * connector_new(Pool_desc *, const condesc_t *);
void set_connector_farthest_word(Exp *, int, int, Parse_Options);
void free_connectors(Connector *);
void calculate_connector_info(condesc_t *);
Expand Down
2 changes: 1 addition & 1 deletion link-grammar/prepare/build-disjuncts.c
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ build_disjunct(Sentence sent, Clause * cl, const char * wstring,
continue;
}

Connector *n = connector_new(connector_pool, t->e->condesc, opts);
Connector *n = connector_new(connector_pool, t->e->condesc);
t->tracon = n; /* cache this tracon */

n->exp_pos = t->e->pos;
Expand Down
4 changes: 2 additions & 2 deletions link-grammar/sat-solver/sat-encoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1824,8 +1824,8 @@ bool SATEncoderConjunctionFreeSentences::sat_extract_links(Linkage lkg)

// Allocate memory for the connectors, because they should persist
// beyond the lifetime of the sat-solver data structures.
clink.lc = connector_new(NULL, NULL, NULL);
clink.rc = connector_new(NULL, NULL, NULL);
clink.lc = connector_new(NULL, NULL);
clink.rc = connector_new(NULL, NULL);

*clink.lc = lpc->connector;
*clink.rc = rpc->connector;
Expand Down

0 comments on commit d96da4d

Please sign in to comment.