diff --git a/src/scm/report-utilities.scm b/src/scm/report-utilities.scm index a2e3fcdab3..b5e198e2c4 100644 --- a/src/scm/report-utilities.scm +++ b/src/scm/report-utilities.scm @@ -104,9 +104,6 @@ (thunk (gnc:account-get-split account x))) 0 (gnc:account-get-split-count account) 1)) -(define (gnc:group-get-accounts group) - (gnc:group-map-accounts (lambda (a) a) group)) - ;; Pull a scheme list of splits from a C array (define (gnc:convert-split-list split-array) (let loop ((index 0) @@ -118,18 +115,6 @@ (gnc:ith-split split-array (+ index 1)) (cons split slist))))) -;; pull a scheme list of splits from an account -(define (gnc:account-get-split-list account) - (let ((num-splits (gnc:account-get-split-count account))) - (let loop ((index 0) - (split (gnc:account-get-split account 0)) - (slist '())) - (if (= index num-splits) - (reverse slist) - (loop (+ index 1) - (gnc:account-get-split account (+ index 1)) - (cons split slist)))))) - ; (define (gnc:account-transactions-for-each thunk account) ; ;; You must call gnc:group-reset-write-flags on the account group ; ;; before using this... diff --git a/src/scm/report/account-summary.scm b/src/scm/report/account-summary.scm index 8a24df486c..12959195ee 100644 --- a/src/scm/report/account-summary.scm +++ b/src/scm/report/account-summary.scm @@ -46,22 +46,10 @@ "Report Options" "Account" "b" "Report on these account(s)" (lambda () - (let ((current-accounts (gnc:get-current-accounts)) - (num-accounts - (gnc:group-get-num-accounts (gnc:get-current-group)))) - + (let ((current-accounts (gnc:get-current-accounts))) (cond ((not (null? current-accounts)) current-accounts) (else - (let ((acctlist '())) - (gnc:for-loop - (lambda(x) - (set! acctlist - (append! - acctlist - (list (gnc:group-get-account - (gnc:get-current-group) x))))) - 0 num-accounts 1) - acctlist))))) + (gnc:group-get-account-list (gnc:get-current-group)))))) #f #t)) (gnc:register-accsum-option @@ -99,7 +87,8 @@ (else (string-append "