diff --git a/src/backend/postgres/PostgresBackend.c b/src/backend/postgres/PostgresBackend.c index 69e5daab43..c88090adde 100644 --- a/src/backend/postgres/PostgresBackend.c +++ b/src/backend/postgres/PostgresBackend.c @@ -197,23 +197,6 @@ pgendSplitLookup (PGBackend *be, const GUID *split_guid) return NULL; } -GNCPrice * -pgendPriceLookup (PGBackend *be, const GUID *price_guid) -{ - GList *node; - GNCPrice * price = NULL; - - ENTER("guid = %s", guid_to_string(price_guid)); - for (node=be->blist; node; node=node->next) - { - GNCBook *book = node->data; - price = gnc_price_lookup (price_guid, book); - if (price) { LEAVE("price = %p", price); return price; } - } - - return NULL; -} - GNCIdType pgendGUIDType (PGBackend *be, const GUID *guid) { diff --git a/src/backend/postgres/PostgresBackend.h b/src/backend/postgres/PostgresBackend.h index 1eca0a4a3b..c59354bc56 100644 --- a/src/backend/postgres/PostgresBackend.h +++ b/src/backend/postgres/PostgresBackend.h @@ -124,7 +124,6 @@ Backend * pgendNew (void); Account * pgendAccountLookup (PGBackend *be, const GUID *acct_guid); Transaction * pgendTransLookup (PGBackend *be, const GUID *txn_guid); Split * pgendSplitLookup (PGBackend *be, const GUID *split_guid); -GNCPrice * pgendPriceLookup (PGBackend *be, const GUID *price_guid); GNCIdType pgendGUIDType (PGBackend *be, const GUID *guid); void pgendDisable (PGBackend *be);