Cleanup some exposed string functions we don't need

This commit is contained in:
K. Lange 2022-07-05 13:30:06 +09:00
parent 3cda8cf0da
commit eabe6f9ecf
2 changed files with 0 additions and 5 deletions

View File

@ -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)

View File

@ -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]));