From 792f18a7fa64773f7d8466740f8da5e434c2da4f Mon Sep 17 00:00:00 2001 From: Alexander Date: Tue, 1 Jan 2019 08:41:21 +0300 Subject: Remove unused HasHeaderMap (#5175) It is updated by some readers, but never actually used. --- src/Text/Pandoc/Readers/LaTeX/Parsing.hs | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/Text/Pandoc/Readers/LaTeX') diff --git a/src/Text/Pandoc/Readers/LaTeX/Parsing.hs b/src/Text/Pandoc/Readers/LaTeX/Parsing.hs index c5385bedc..9437c23d9 100644 --- a/src/Text/Pandoc/Readers/LaTeX/Parsing.hs +++ b/src/Text/Pandoc/Readers/LaTeX/Parsing.hs @@ -131,7 +131,6 @@ data LaTeXState = LaTeXState{ sOptions :: ReaderOptions , sQuoteContext :: QuoteContext , sMacros :: M.Map Text Macro , sContainers :: [String] - , sHeaders :: M.Map Inlines String , sLogMessages :: [LogMessage] , sIdentifiers :: Set.Set String , sVerbatimMode :: Bool @@ -153,7 +152,6 @@ defaultLaTeXState = LaTeXState{ sOptions = def , sQuoteContext = NoQuote , sMacros = M.empty , sContainers = [] - , sHeaders = M.empty , sLogMessages = [] , sIdentifiers = Set.empty , sVerbatimMode = False @@ -192,10 +190,6 @@ instance HasIncludeFiles LaTeXState where addIncludeFile f s = s{ sContainers = f : sContainers s } dropLatestIncludeFile s = s { sContainers = drop 1 $ sContainers s } -instance HasHeaderMap LaTeXState where - extractHeaderMap = sHeaders - updateHeaderMap f st = st{ sHeaders = f $ sHeaders st } - instance HasMacros LaTeXState where extractMacros st = sMacros st updateMacros f st = st{ sMacros = f (sMacros st) } -- cgit v1.2.3