aboutsummaryrefslogtreecommitdiff
path: root/definitions.c
diff options
context:
space:
mode:
Diffstat (limited to 'definitions.c')
-rw-r--r--definitions.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/definitions.c b/definitions.c
index 3e5f0e2..18bd612 100644
--- a/definitions.c
+++ b/definitions.c
@@ -66,17 +66,6 @@ def_t *lookup(def_t *defs, size_t namelen, const char *name)
}
//
-// Push a backreference onto the backreference stack
-//
-def_t *with_backref(def_t *defs, file_t *f, size_t namelen, const char *name, match_t *m)
-{
- // TODO: maybe calculate length? (nontrivial because of replacements)
- pat_t *backref = new_pat(f, m->start, m->end, 0, -1, BP_BACKREF);
- backref->args.backref = m;
- return with_def(defs, namelen, name, backref);
-}
-
-//
// Free all the given definitions up till (but not including) `stop`
//
void free_defs(def_t **defs, def_t *stop)