From f5b53683f09aba885af2a48afdda073b3024219a Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Fri, 15 Mar 2019 07:51:45 +0000 Subject: Remove unused code in r.cxx --- Source/Modules/r.cxx | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'Source') diff --git a/Source/Modules/r.cxx b/Source/Modules/r.cxx index fde583ed6..bb43dad48 100644 --- a/Source/Modules/r.cxx +++ b/Source/Modules/r.cxx @@ -226,18 +226,6 @@ static void replaceRClass(String *tm, SwigType *type) { Delete(tmp); Delete(tmp_base); Delete(tmp_ref); } -static bool getNumber(String *value, int* result) { - if(Char(value)) { - // Check the conversion processed the whole of value by having %c at - // the end of the format, and checking that only the first value is - // converted. We don't want to convert "3+7" -> 3. - char dummy; - if (sscanf(Char(value), "%i%c", result, &dummy) == 1) - return true; - } - return false; -} - class R : public Language { public: R(); -- cgit v1.2.1