diff --git a/src/code.c b/src/code.c index 8e8ddb6794..17de49bfab 100644 --- a/src/code.c +++ b/src/code.c @@ -119,14 +119,6 @@ static StatHeader * STAT_HEADER(CodeState * cs, Stat stat) return (StatHeader *)ADDR_STAT(cs, stat) - 1; } -void SET_VISITED_STAT(Stat stat) -{ - Stat * addr = (Stat *)STATE(PtrBody) + stat / sizeof(Stat); - StatHeader * header = (StatHeader *)addr - 1; - header->visited = 1; -} - - static Int TNUM_STAT_OR_EXPR(CodeState * cs, Expr expr) { if (IS_REF_LVAR(expr)) diff --git a/src/code.h b/src/code.h index a66c7f40a6..67b7902c1c 100644 --- a/src/code.h +++ b/src/code.h @@ -26,10 +26,6 @@ ** Header for any statement or expression encoded in a function body. */ typedef struct { - // `visited` starts out as 0 and is set to 1 if the statement or - // expression has ever been executed while profiling is turned on - unsigned int visited : 1; - // `line` records the line number in the source file in which the // statement or expression started unsigned int line : 31; @@ -375,30 +371,6 @@ EXPORT_INLINE Int LINE_STAT(Stat stat) return CONST_STAT_HEADER(stat)->line; } - -/**************************************************************************** -** -*F VISITED_STAT() . . . . . . . . . . . if statement has even been run -** -** 'VISITED_STAT' returns true if the statement has ever been executed -** while profiling is turned on. -*/ -EXPORT_INLINE Int VISITED_STAT(Stat stat) -{ - return CONST_STAT_HEADER(stat)->visited; -} - - -/**************************************************************************** -** -*F SET_VISITED_STAT() . . . . . . . . . . mark statement as having run -** -** 'SET_VISITED_STAT' marks the statement as having been executed while -** profiling was turned on. -*/ -void SET_VISITED_STAT(Stat stat); - - /**************************************************************************** ** *F IS_REF_LVAR() . . . test if an expression is a reference to a local