mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-08 13:37:33 +02:00
Removed unnecessary type checks
This commit is contained in:
parent
8e8e07c3b3
commit
a5dfcc2f85
1 changed files with 0 additions and 2 deletions
|
@ -1972,7 +1972,6 @@ object Cyc_string2number_(void *data, object cont, object str)
|
|||
int result, rv;
|
||||
double n;
|
||||
char *s;
|
||||
Cyc_check_obj(data, string_tag, str);
|
||||
Cyc_check_str(data, str);
|
||||
if (type_of(str) == string_tag && ((string_type *) str)->str) {
|
||||
s = ((string_type *) str)->str;
|
||||
|
@ -2077,7 +2076,6 @@ object Cyc_string_append(void *data, object cont, int _argc, object str1, ...)
|
|||
|
||||
object Cyc_string_length(void *data, object str)
|
||||
{
|
||||
Cyc_check_obj(data, string_tag, str);
|
||||
Cyc_check_str(data, str);
|
||||
return obj_int2obj(string_len(str));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue