From 2eb65ba00cfd8e44a6dd3e51820c46595aaf6ae9 Mon Sep 17 00:00:00 2001 From: Jason Riesa Date: Mon, 27 Jul 2015 19:05:46 -0700 Subject: [PATCH] Removes unused functions from utf8statetable.cc --- internal/utf8statetable.cc | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/internal/utf8statetable.cc b/internal/utf8statetable.cc index aa9a98e..bd1e161 100644 --- a/internal/utf8statetable.cc +++ b/internal/utf8statetable.cc @@ -173,34 +173,6 @@ static inline bool InStateZero_2(const UTF8ReplaceObj_2* st, return (static_cast(Tbl - Tbl0) < st->state0_size); } -// UTF8PropObj, UTF8ScanObj, UTF8ReplaceObj are all typedefs of -// UTF8MachineObj. - -static bool IsPropObj(const UTF8StateMachineObj& obj) { - return obj.fast_state == NULL - && obj.max_expand == 0; -} - -static bool IsPropObj_2(const UTF8StateMachineObj_2& obj) { - return obj.fast_state == NULL - && obj.max_expand == 0; -} - -static bool IsScanObj(const UTF8StateMachineObj& obj) { - return obj.fast_state != NULL - && obj.max_expand == 0; -} - -static bool IsReplaceObj(const UTF8StateMachineObj& obj) { - // Normally, obj.fast_state != NULL, but the handwritten tables - // in utf8statetable_unittest don't handle fast_states. - return obj.max_expand > 0; -} - -static bool IsReplaceObj_2(const UTF8StateMachineObj_2& obj) { - return obj.max_expand > 0; -} - // Look up property of one UTF-8 character and advance over it // Return 0 if input length is zero // Return 0 and advance one byte if input is ill-formed