From c01044893507203038e084bb32ad109ad619c745 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Wed, 9 May 2012 15:33:16 +0000 Subject: [PATCH] drop little-used clashing Ledger accessors --- hledger-lib/Hledger/Data/Ledger.hs | 39 ------------------------------ 1 file changed, 39 deletions(-) diff --git a/hledger-lib/Hledger/Data/Ledger.hs b/hledger-lib/Hledger/Data/Ledger.hs index 40db92636..d737b7e1c 100644 --- a/hledger-lib/Hledger/Data/Ledger.hs +++ b/hledger-lib/Hledger/Data/Ledger.hs @@ -101,45 +101,6 @@ ledgerAccountTreeAt l acct = subtreeat acct $ ledgerAccountTree 9999 l ledgerDateSpan :: Ledger -> DateSpan ledgerDateSpan = postingsDateSpan . ledgerPostings --- | Convenience aliases. -accountnames :: Ledger -> [AccountName] -accountnames = ledgerAccountNames - -account :: Ledger -> AccountName -> Account -account = ledgerAccount - -accounts :: Ledger -> [Account] -accounts = ledgerAccounts - -topaccounts :: Ledger -> [Account] -topaccounts = ledgerTopAccounts - -accountsmatching :: [String] -> Ledger -> [Account] -accountsmatching = ledgerAccountsMatching - -subaccounts :: Ledger -> Account -> [Account] -subaccounts = ledgerSubAccounts - -postings :: Ledger -> [Posting] -postings = ledgerPostings - -commodities :: Ledger -> Map String Commodity -commodities = journalCanonicalCommodities . journal - -accounttree :: Int -> Ledger -> Tree Account -accounttree = ledgerAccountTree - -accounttreeat :: Ledger -> Account -> Maybe (Tree Account) -accounttreeat = ledgerAccountTreeAt - --- datespan :: Ledger -> DateSpan --- datespan = ledgerDateSpan - -rawdatespan :: Ledger -> DateSpan -rawdatespan = journalDateSpan . journal - -ledgeramounts :: Ledger -> [MixedAmount] -ledgeramounts = journalAmounts . journal tests_Hledger_Data_Ledger = TestList [