mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Remove ancient #if-0'd code from Engine
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23208 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
44af452d48
commit
db4285f549
@ -208,18 +208,7 @@ gnc_hook_add_scm_dangler (const gchar *name, SCM proc)
|
||||
g_hook_append(gnc_hook->scm_danglers, hook);
|
||||
LEAVE("");
|
||||
}
|
||||
#if 0 /* Not Used */
|
||||
static gboolean
|
||||
hook_remove_scm_runner (GHook *hook, gpointer data)
|
||||
{
|
||||
GncScmDangler *scm1 = data;
|
||||
GncScmDangler *scm2 = hook->data;
|
||||
SCM res;
|
||||
|
||||
res = scm_equal_p(scm1->proc, scm2->proc);
|
||||
return(scm_is_true(res));
|
||||
}
|
||||
#endif
|
||||
static void
|
||||
call_c_hook (GHook *hook, gpointer data)
|
||||
{
|
||||
|
@ -1537,31 +1537,6 @@ gnc_pricedb_lookup_day(GNCPriceDB *db,
|
||||
return lookup_nearest_in_time(db, c, currency, t, TRUE);
|
||||
}
|
||||
|
||||
#if 0 /* Not Used */
|
||||
static void
|
||||
lookup_day(gpointer key, gpointer val, gpointer user_data)
|
||||
{
|
||||
//gnc_commodity *currency = (gnc_commodity *)key;
|
||||
GList *price_list = (GList *)val;
|
||||
GList *item = NULL;
|
||||
GNCPriceLookupHelper *lookup_helper = (GNCPriceLookupHelper *)user_data;
|
||||
GList **return_list = lookup_helper->return_list;
|
||||
Timespec t = lookup_helper->time;
|
||||
|
||||
item = price_list;
|
||||
while (item)
|
||||
{
|
||||
GNCPrice *p = item->data;
|
||||
Timespec price_time = timespecCanonicalDayTime(gnc_price_get_time(p));
|
||||
if (timespec_equal(&price_time, &t))
|
||||
{
|
||||
gnc_price_list_insert(return_list, item->data, FALSE);
|
||||
}
|
||||
item = item->next;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
PriceList *
|
||||
gnc_pricedb_lookup_at_time(GNCPriceDB *db,
|
||||
const gnc_commodity *c,
|
||||
@ -1620,30 +1595,7 @@ gnc_pricedb_lookup_at_time(GNCPriceDB *db,
|
||||
LEAVE (" ");
|
||||
return result;
|
||||
}
|
||||
#if 0 /* Not Used */
|
||||
static void
|
||||
lookup_time(gpointer key, gpointer val, gpointer user_data)
|
||||
{
|
||||
//gnc_commodity *currency = (gnc_commodity *)key;
|
||||
GList *price_list = (GList *)val;
|
||||
GList *item = NULL;
|
||||
GNCPriceLookupHelper *lookup_helper = (GNCPriceLookupHelper *)user_data;
|
||||
GList **return_list = lookup_helper->return_list;
|
||||
Timespec t = lookup_helper->time;
|
||||
|
||||
item = price_list;
|
||||
while (item)
|
||||
{
|
||||
GNCPrice *p = item->data;
|
||||
Timespec price_time = gnc_price_get_time(p);
|
||||
if (timespec_equal(&price_time, &t))
|
||||
{
|
||||
gnc_price_list_insert(return_list, item->data, FALSE);
|
||||
}
|
||||
item = item->next;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
static GNCPrice *
|
||||
lookup_nearest_in_time(GNCPriceDB *db,
|
||||
const gnc_commodity *c,
|
||||
|
@ -768,11 +768,6 @@ void gncEntrySetOrder (GncEntry *entry, GncOrder *order)
|
||||
mark_entry (entry);
|
||||
gncEntryCommitEdit (entry);
|
||||
|
||||
/* Generate an event modifying the Order's end-owner */
|
||||
#if 0
|
||||
qof_event_gen (gncOwnerGetEndGUID (gncOrderGetOwner (order)),
|
||||
QOF_EVENT_MODIFY, NULL);
|
||||
#endif
|
||||
}
|
||||
|
||||
/* called from gncInvoice when we're added to the Invoice */
|
||||
|
Loading…
Reference in New Issue
Block a user