From 2b712197662da8b0e13fb8df867e444f063b8b72 Mon Sep 17 00:00:00 2001 From: Christopher Lam Date: Tue, 16 Apr 2024 07:30:15 +0800 Subject: [PATCH] [Account.cpp] remove obsolete comment --- libgnucash/engine/Account.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/libgnucash/engine/Account.cpp b/libgnucash/engine/Account.cpp index d25d01aeca..504e1794e2 100644 --- a/libgnucash/engine/Account.cpp +++ b/libgnucash/engine/Account.cpp @@ -3985,17 +3985,6 @@ xaccAccountGetSplits (const Account *account) return GNC_IS_ACCOUNT(account) ? GET_PRIVATE(account)->splits : SplitsVec{}; } -/* THIS API NEEDS TO CHANGE. - * - * This code exposes the internal structure of the account object to - * external callers by returning the actual list used by the object. - * It should instead return a copy of the split list that the caller - * is required to free. That change would provide the freedom of - * allowing the internal organization to change data structures if - * necessary for whatever reason, while leaving the external API - * unchanged. */ -/* XXX: violates the const'ness by forcing a sort before returning - * the splitlist */ SplitList * xaccAccountGetSplitList (const Account *acc) {