remove private isl_ast_expr_alloc_int which is no longer used
authorSven Verdoolaege <skimo@kotnet.org>
Tue, 28 May 2013 13:27:25 +0000 (15:27 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Tue, 28 May 2013 18:42:49 +0000 (20:42 +0200)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_ast.c
isl_ast_private.h

index 0c24c5b..5885e41 100644 (file)
--- a/isl_ast.c
+++ b/isl_ast.c
@@ -394,27 +394,6 @@ __isl_give isl_ast_expr *isl_ast_expr_alloc_int_si(isl_ctx *ctx, int i)
        return expr;
 }
 
-/* Create a new integer expression representing "i".
- */
-__isl_give isl_ast_expr *isl_ast_expr_alloc_int(isl_ctx *ctx, isl_int i)
-{
-       isl_ast_expr *expr;
-
-       expr = isl_calloc_type(ctx, isl_ast_expr);
-       if (!expr)
-               return NULL;
-
-       expr->ctx = ctx;
-       isl_ctx_ref(ctx);
-       expr->ref = 1;
-       expr->type = isl_ast_expr_int;
-       expr->u.v = isl_val_int_from_isl_int(ctx, i);
-       if (!expr->u.v)
-               expr = isl_ast_expr_free(expr);
-
-       return expr;
-}
-
 /* Create a new integer expression representing "v".
  */
 __isl_give isl_ast_expr *isl_ast_expr_from_val(__isl_take isl_val *v)
index ec2e339..c1bf334 100644 (file)
@@ -34,7 +34,6 @@ struct isl_ast_expr {
 
 #include <isl_list_templ.h>
 
-__isl_give isl_ast_expr *isl_ast_expr_alloc_int(isl_ctx *ctx, isl_int i);
 __isl_give isl_ast_expr *isl_ast_expr_alloc_int_si(isl_ctx *ctx, int i);
 __isl_give isl_ast_expr *isl_ast_expr_alloc_op(isl_ctx *ctx,
        enum isl_ast_op_type op, int n_arg);