Browse Source

Remove some redundant subject statements in TTL grammar.

scossu 3 days ago
parent
commit
6ec43195f8
2 changed files with 0 additions and 4 deletions
  1. 0 2
      include/term.h
  2. 0 2
      src/codec/grammar_ttl.y

+ 0 - 2
include/term.h

@@ -550,8 +550,6 @@ LSUP_term_set_next (LSUP_TermSet *ts, size_t *i, LSUP_Term **term);
 
 
 /** @brief New link map.
- *
- * Terms can be added to a link map with #LSUP_term_set_add().
  *
  * @param[in] linked_term Term to be linked to map. The term is copied and may
  *  be freed after this function call.

+ 0 - 2
src/codec/grammar_ttl.y

@@ -79,7 +79,6 @@ base        ::= BASE WS IRIREF(D) PERIOD . {
             }
 
 triples 	::= subject(S) ows predObjList(L) PERIOD . {
-                state->lms = S;
                 size_t ct = LSUP_graph_add_link_map (state->it, L);
                 state->ct += ct;
                 state->rc = LSUP_OK;
@@ -89,7 +88,6 @@ triples 	::= subject(S) ows predObjList(L) PERIOD . {
                 LSUP_link_map_free (L);
             }
 triples 	::= subject(S) ows predObjList(L) SEMICOLON PERIOD . [PERIOD] {
-                state->lms = S;
                 size_t ct = LSUP_graph_add_link_map (state->it, L);
                 state->ct += ct;
                 state->rc = LSUP_OK;