summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2013-04-20 10:57:09 -0400
committerAdrian Thurston <thurston@complang.org>2013-04-20 10:57:09 -0400
commitae5d871c0947f96f7e041a46ef53678e1a58f114 (patch)
treeb174fa9e2033f116ff7206ea50efb16b755f803e
parent3d570380eaa98d0f2e19c74ead1c43c5cceb91fc (diff)
downloadcolm-ae5d871c0947f96f7e041a46ef53678e1a58f114.tar.gz
some dead code removal
-rw-r--r--colm/pdarun.c13
-rw-r--r--colm/pdarun.h3
2 files changed, 0 insertions, 16 deletions
diff --git a/colm/pdarun.c b/colm/pdarun.c
index 48d63ad6..db5658af 100644
--- a/colm/pdarun.c
+++ b/colm/pdarun.c
@@ -233,19 +233,6 @@ static void sendBackIgnore( Program *prg, Tree **sp, PdaRun *pdaRun, FsmRun *fsm
}
}
-void clearBuffered( FsmRun *fsmRun )
-{
- if ( fsmRun->tokstart != 0 ) {
- //fsmRun->p = fsmRun->pe = fsmRun->tokstart;
- //fsmRun->tokstart = 0;
-
- fsmRun->pe = fsmRun->p;
- }
- else {
- fsmRun->pe = fsmRun->p;
- }
-}
-
void resetToken( PdaRun *pdaRun )
{
FsmRun *fsmRun = pdaRun->fsmRun;
diff --git a/colm/pdarun.h b/colm/pdarun.h
index 6b5cafd4..4af8fc2a 100644
--- a/colm/pdarun.h
+++ b/colm/pdarun.h
@@ -445,10 +445,7 @@ void clearIgnoreList( struct colm_program *prg, Tree **sp, Kid *kid );
long parseLoop( struct colm_program *prg, Tree **sp, PdaRun *pdaRun,
StreamImpl *inputStream, long entry );
Tree *getParsedRoot( PdaRun *pdaRun, int stop );
-void undoParseStream( struct colm_program *prg, Tree **sp, StreamImpl *inputStream, FsmRun *fsmRun,
- PdaRun *pdaRun, long steps );
-void clearBuffered( FsmRun *fsmRun );
void resetToken( PdaRun *pdaRun );
#ifdef __cplusplus