From bb4d9abe07077f8d74d3e9f35c63820d50514ed6 Mon Sep 17 00:00:00 2001 From: Chris Jefferson Date: Mon, 12 Dec 2022 23:16:03 +0000 Subject: [PATCH] Remove VISITED_STAT and SET_VISITED_STAT --- src/code.c | 6 ------ src/code.h | 25 ------------------------- 2 files changed, 31 deletions(-) diff --git a/src/code.c b/src/code.c index d2304038afd..44dc9c88ad4 100644 --- a/src/code.c +++ b/src/code.c @@ -152,12 +152,6 @@ static StatHeader * STAT_HEADER(Stat stat) return (StatHeader *)ADDR_STAT(stat) - 1; } -void SET_VISITED_STAT(Stat stat) -{ - STAT_HEADER(stat)->visited = 1; -} - - #define SET_FUNC_CALL(call,x) WRITE_EXPR(call, 0, x) #define SET_ARGI_CALL(call,i,x) WRITE_EXPR(call, i, x) #define SET_ARGI_INFO(info,i,x) WRITE_STAT(info, (i) - 1, x) diff --git a/src/code.h b/src/code.h index cbdb471ffc2..4711bc078df 100644 --- a/src/code.h +++ b/src/code.h @@ -25,7 +25,6 @@ ** */ typedef struct { - unsigned int visited : 1; unsigned int line : 31; unsigned int size : 24; unsigned int type : 8; @@ -342,30 +341,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