forked from marko/svitak
remove repeated function
This commit is contained in:
parent
ec47012b5f
commit
36d6d46c57
2 changed files with 0 additions and 10 deletions
|
|
@ -103,12 +103,6 @@ getRootPath :: T.Text -> Maybe String
|
|||
getRootPath rawhtml =
|
||||
scrapeStringLike rawhtml $ T.unpack <$> attr "full-path" "rootfile"
|
||||
|
||||
ncxScraper :: Scraper T.Text [(FilePath, T.Text)]
|
||||
ncxScraper = chroots "navPoint" $ do
|
||||
path <- T.unpack . T.takeWhile (/= '#') <$> attr "src" "content"
|
||||
title <- T.strip <$> text "navLabel"
|
||||
pure (path, title)
|
||||
|
||||
resolveSpine :: EpubAction [(InternalPath, T.Text)]
|
||||
resolveSpine = do
|
||||
env <- ask
|
||||
|
|
|
|||
|
|
@ -82,10 +82,6 @@ initAppServices env stateTVar actionHandler = do
|
|||
pure ()
|
||||
pure ()
|
||||
|
||||
ncxScraper :: Scraper T.Text [(FilePath, T.Text)]
|
||||
ncxScraper = chroots "navPoint" $
|
||||
(,) <$> (T.unpack . T.takeWhile (/= '#') <$> attr "src" "content") <*> (T.strip <$> text "navLabel")
|
||||
|
||||
activate :: EpubEnv -> Gtk.Application -> IO ()
|
||||
activate env app = do
|
||||
stateTVar <- newTVarIO (initialState env)
|
||||
|
|
|
|||
Loading…
Reference in a new issue