From 443212d1b3877f9ff74528686091a74072d530af Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Tue, 6 Nov 2012 22:14:29 +0300 Subject: [PATCH] sval: delete unused sval_to_ll() function Signed-off-by: Dan Carpenter --- smatch.h | 1 - smatch_sval.c | 11 ----------- 2 files changed, 12 deletions(-) diff --git a/smatch.h b/smatch.h index 6c9b319c..aaa979a2 100644 --- a/smatch.h +++ b/smatch.h @@ -528,7 +528,6 @@ sval_t sval_cast(sval_t sval, struct symbol *type); sval_t sval_preop(sval_t sval, int op); sval_t sval_binop(sval_t left, int op, sval_t right); const char *sval_to_str(sval_t sval); -long long sval_to_ll(sval_t sval); sval_t ll_to_sval(long long val); #endif /* !SMATCH_H_ */ diff --git a/smatch_sval.c b/smatch_sval.c index 98af8fdb..46b8150e 100644 --- a/smatch_sval.c +++ b/smatch_sval.c @@ -277,17 +277,6 @@ const char *sval_to_str(sval_t sval) return alloc_sname(buf); } -/* - * This function is for compatibility. Eventually everything will use svals - * and we can get rid of whole_range.max. - */ -long long sval_to_ll(sval_t sval) -{ - if (sval_unsigned(sval) && sval.value == ULLONG_MAX) - return whole_range.max; - return sval.value; -} - sval_t ll_to_sval(long long val) { sval_t ret; -- 2.11.4.GIT