[gnumeric] solver: dead code.



commit 29b94ee4eaef65882273476c4a9645fda8aa73ad
Author: Morten Welinder <terra gnome org>
Date:   Thu Nov 12 17:02:08 2009 -0500

    solver: dead code.

 src/solver.h              |   22 ----------------------
 src/tools/solver/solver.c |    6 ------
 2 files changed, 0 insertions(+), 28 deletions(-)
---
diff --git a/src/solver.h b/src/solver.h
index 530cd5b..fa444a1 100644
--- a/src/solver.h
+++ b/src/solver.h
@@ -4,7 +4,6 @@
 
 #include "gnumeric.h"
 #include "numbers.h"
-#include "dependent.h"
 #include <gsf/gsf-libxml.h>
 
 
@@ -14,8 +13,6 @@ G_BEGIN_DECLS
 
 /* -------------------------------------------------------------------------- */
 
-#ifdef GNM_ENABLE_SOLVER
-
 typedef enum {
 	SolverRunning, SolverOptimal, SolverUnbounded, SolverInfeasible,
 	SolverFailure, SolverMaxIterExc, SolverMaxTimeExc
@@ -85,25 +82,6 @@ gchar *          solver_reports        (WorkbookControl *wbc, Sheet *sheet,
 /* Returns a pointer to a input variable cell. */
 GnmCell		*solver_get_input_var (SolverResults *res, int n);
 
-/* Returns a pointer to a constraint. */
-GnmSolverConstraint* solver_get_constraint (SolverResults *res, int n);
-
-void              solver_param_read_sax (GsfXMLIn *xin, xmlChar const **attrs);
-
-#else /* !GNM_ENABLE_SOLVER */
-
-#define gnm_solver_param_new() NULL
-#define gnm_solver_param_dup(src_param, new_sheet) NULL
-#define gnm_solver_param_free(param)		do {} while(0)
-#define solver_insert_cols(sheet, col, count)	do {} while(0)
-#define solver_insert_rows(sheet, row, count)	do {} while(0)
-#define solver_delete_cols(sheet, col, count)	do {} while(0)
-#define solver_delete_rows(sheet, row, count)	do {} while(0)
-#define gnm_solver_constraint_free(c) do {} while(0)
-#define solver_param_read_sax (void)
-
-#endif
-
 G_END_DECLS
 
 #endif /* _GNM_SOLVER_H_ */
diff --git a/src/tools/solver/solver.c b/src/tools/solver/solver.c
index f148af8..c4f7cc4 100644
--- a/src/tools/solver/solver.c
+++ b/src/tools/solver/solver.c
@@ -70,10 +70,4 @@ solver_get_input_var (SolverResults *res, int n)
         return res->input_cells_array[n];
 }
 
-GnmSolverConstraint*
-solver_get_constraint (SolverResults *res, int n)
-{
-        return res->constraints_array[n];
-}
-
 /* ------------------------------------------------------------------------- */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]