Cleanup some exposed string functions we don't need
This commit is contained in:
parent
3cda8cf0da
commit
eabe6f9ecf
@ -219,13 +219,9 @@ static inline KrkValue discardStringBuilder(struct StringBuilder * sb) {
|
||||
|
||||
extern KrkValue krk_dict_nth_key_fast(size_t capacity, KrkTableEntry * entries, size_t index);
|
||||
extern KrkValue FUNC_NAME(str,__getitem__)(int,const KrkValue*,int);
|
||||
extern KrkValue FUNC_NAME(str,__int__)(int,const KrkValue*,int);
|
||||
extern KrkValue FUNC_NAME(str,__float__)(int,const KrkValue*,int);
|
||||
extern KrkValue FUNC_NAME(str,split)(int,const KrkValue*,int);
|
||||
extern KrkValue FUNC_NAME(str,format)(int,const KrkValue*,int);
|
||||
#define krk_string_get FUNC_NAME(str,__getitem__)
|
||||
#define krk_string_int FUNC_NAME(str,__int__)
|
||||
#define krk_string_float FUNC_NAME(str,__float__)
|
||||
#define krk_string_split FUNC_NAME(str,split)
|
||||
#define krk_string_format FUNC_NAME(str,format)
|
||||
|
||||
|
@ -311,7 +311,6 @@ FUNC_SIG(float,__init__) {
|
||||
static __attribute__ ((unused)) const char* _method_name = "__init__";
|
||||
METHOD_TAKES_AT_MOST(1);
|
||||
if (argc < 2) return FLOATING_VAL(0.0);
|
||||
if (IS_STRING(argv[1])) return krk_string_float(1,&argv[1],0);
|
||||
if (IS_FLOATING(argv[1])) return argv[1];
|
||||
if (IS_INTEGER(argv[1])) return FLOATING_VAL(AS_INTEGER(argv[1]));
|
||||
if (IS_BOOLEAN(argv[1])) return FLOATING_VAL(AS_BOOLEAN(argv[1]));
|
||||
|
Loading…
Reference in New Issue
Block a user