From 470eb46e9601bc27b6dfdf84c1c038342ca2e765 Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Fri, 13 Sep 2013 13:49:17 +0000 Subject: [PATCH] remove leftcorner_cat_idx which is now redundant --- src/runtime/c/pgf/data.h | 4 ---- src/runtime/c/pgf/parser.c | 4 ---- src/runtime/c/pgf/reader.c | 1 - 3 files changed, 9 deletions(-) diff --git a/src/runtime/c/pgf/data.h b/src/runtime/c/pgf/data.h index 5e32d8e5e..ef5d1a780 100644 --- a/src/runtime/c/pgf/data.h +++ b/src/runtime/c/pgf/data.h @@ -157,9 +157,6 @@ extern GU_DECLARE_TYPE(PgfCncOverloadMap, GuMap); typedef GuMap PgfProductionIdx; extern GU_DECLARE_TYPE(PgfProductionIdx, GuMap); -typedef GuMap PgfLeftcornerCatIdx; -extern GU_DECLARE_TYPE(PgfLeftcornerCatIdx, GuMap); - typedef GuMap PgfLeftcornerTokIdx; extern GU_DECLARE_TYPE(PgfLeftcornerTokIdx, GuMap); @@ -233,7 +230,6 @@ struct PgfConcr { PgfCncFunOverloadMap* fun_indices; PgfCncOverloadMap* coerce_idx; PgfProductionIdx* epsilon_idx; - PgfLeftcornerCatIdx* leftcorner_cat_idx; PgfLeftcornerTokIdx* leftcorner_tok_idx; PgfCncFuns* cncfuns; PgfSequences* sequences; diff --git a/src/runtime/c/pgf/parser.c b/src/runtime/c/pgf/parser.c index fb930704c..4408b4336 100644 --- a/src/runtime/c/pgf/parser.c +++ b/src/runtime/c/pgf/parser.c @@ -138,10 +138,6 @@ struct PgfItem { prob_t inside_prob; }; -GU_DEFINE_TYPE(PgfLeftcornerCatIdx, GuMap, - gu_type(PgfCFCat), &pgf_cfcat_hasher, - gu_ptr_type(PgfProductionIdx), &gu_null_struct); - GU_DEFINE_TYPE(PgfLeftcornerTokIdx, GuStringMap, gu_ptr_type(PgfProductionIdx), &gu_null_struct); diff --git a/src/runtime/c/pgf/reader.c b/src/runtime/c/pgf/reader.c index abfbfe025..00e5061da 100644 --- a/src/runtime/c/pgf/reader.c +++ b/src/runtime/c/pgf/reader.c @@ -1128,7 +1128,6 @@ pgf_read_concrete(PgfReader* rdr, PgfAbstr* abstr) concr->fun_indices = gu_map_type_new(PgfCncFunOverloadMap, rdr->opool); concr->coerce_idx = gu_map_type_new(PgfCncOverloadMap, rdr->opool); concr->epsilon_idx = gu_map_type_new(PgfProductionIdx, rdr->opool); - concr->leftcorner_cat_idx = gu_map_type_new(PgfLeftcornerCatIdx,rdr->opool); concr->leftcorner_tok_idx = gu_map_type_new(PgfLeftcornerTokIdx,rdr->opool); pgf_read_lindefs(rdr, concr); pgf_read_ccats(rdr, concr);