diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2019-03-15 07:51:45 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2019-03-18 17:40:52 +0000 |
commit | f5b53683f09aba885af2a48afdda073b3024219a (patch) | |
tree | 698b9bf710d5a1c98dc51ed2d8541d01902dc96e /Source | |
parent | e60670ec45d64e2aac922c5e52b826204064e6f7 (diff) | |
download | swig-f5b53683f09aba885af2a48afdda073b3024219a.tar.gz |
Remove unused code in r.cxx
Diffstat (limited to 'Source')
-rw-r--r-- | Source/Modules/r.cxx | 12 |
1 files changed, 0 insertions, 12 deletions
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(); |