From ce3491c99f089874725999ca6d8b1fb6a15c9e5e Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 15 Feb 2006 20:10:49 +0000 Subject: Removed Python integration support. --- main.cc | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'main.cc') diff --git a/main.cc b/main.cc index 956a7972..cf53be68 100644 --- a/main.cc +++ b/main.cc @@ -18,9 +18,6 @@ #endif #include "ledger.h" -#ifdef USE_BOOST_PYTHON -#include "py_eval.h" -#endif #include "timing.h" using namespace ledger; @@ -232,33 +229,6 @@ int parse_and_report(int argc, char * argv[], char * envp[]) else format = &config.print_format; -#ifdef USE_BOOST_PYTHON - - // If Python support is compiled, we can easily report minimum and - // maximum values for each commodity. There is a line in config.cc - // which configures the prices report to call these two functions, - // if Python is available. - - if (command == "P") - python_eval("\ -min_val = 0\n\ -def vmin(d, val):\n\ - global min_val\n\ - if not min_val or val < min_val:\n\ - min_val = val\n\ - return val\n\ - return min_val\n\ -\n\ -max_val = 0\n\ -def vmax(d, val):\n\ - global max_val\n\ - if not max_val or val > max_val:\n\ - max_val = val\n\ - return val\n\ - return max_val\n", PY_EVAL_MULTI); - -#endif // USE_BOOST_PYTHON - TIMER_STOP(process); // Walk the entries based on the report type and the options -- cgit v1.2.3