Skip to content

Commit

Permalink
Fix for use_module as/2 import option
Browse files Browse the repository at this point in the history
  • Loading branch information
infradig committed Nov 7, 2024
1 parent 8b5b997 commit fe53ae7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
1 change: 0 additions & 1 deletion src/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,6 @@ struct rule_ {

struct predicate_ {
lnode hdr; // must be first
predicate *alias;
rule *head, *tail;
module *m;
skiplist *idx, *idx2;
Expand Down
16 changes: 0 additions & 16 deletions src/query.c
Original file line number Diff line number Diff line change
Expand Up @@ -1240,12 +1240,6 @@ bool match_rule(query *q, cell *p1, pl_idx p1_ctx, enum clause_type is_retract)
q->st.curr_rule = NULL;
return false;
}

if (pr->alias) {
c->val_off = pr->alias->key.val_off;
pr = pr->alias;
}

if (!pr->is_dynamic)
return throw_error(q, c, c_ctx, "permission_error", "modify,static_procedure");

Expand Down Expand Up @@ -1344,11 +1338,6 @@ bool match_clause(query *q, cell *p1, pl_idx p1_ctx, enum clause_type is_retract
return false;
}

if (pr->alias) {
c->val_off = pr->alias->key.val_off;
pr = pr->alias;
}

if (!pr->is_dynamic) {
if (is_retract == DO_CLAUSE) {
if (!q->access_private)
Expand Down Expand Up @@ -1428,11 +1417,6 @@ static bool match_head(query *q)
return false;
}

if (pr->alias) {
c->val_off = pr->alias->key.val_off;
pr = pr->alias;
}

c->match = pr;
}

Expand Down

0 comments on commit fe53ae7

Please sign in to comment.