@@ -653,50 +653,10 @@ call_vim_function(
653653 return ret ;
654654}
655655
656- /*
657- * Call Vim script function "func" and return the result as a number.
658- * Returns -1 when calling the function fails.
659- * Uses argv[0] to argv[argc - 1] for the function arguments. argv[argc] should
660- * have type VAR_UNKNOWN.
661- */
662- varnumber_T
663- call_func_retnr (
664- char_u * func ,
665- int argc ,
666- typval_T * argv )
667- {
668- typval_T rettv ;
669- varnumber_T retval ;
670-
671- if (call_vim_function (func , argc , argv , & rettv ) == FAIL )
672- return -1 ;
673-
674- retval = tv_get_number_chk (& rettv , NULL );
675- clear_tv (& rettv );
676- return retval ;
677- }
678-
679- /*
680- * Call Vim script function like call_func_retnr() and drop the result.
681- * Returns FAIL when calling the function fails.
682- */
683- int
684- call_func_noret (
685- char_u * func ,
686- int argc ,
687- typval_T * argv )
688- {
689- typval_T rettv ;
690-
691- if (call_vim_function (func , argc , argv , & rettv ) == FAIL )
692- return FAIL ;
693- clear_tv (& rettv );
694- return OK ;
695- }
696-
697656/*
698657 * Call Vim script function "func" and return the result as a string.
699- * Uses "argv" and "argc" as call_func_retnr().
658+ * Uses "argv[0]" to "argv[argc - 1]" for the function arguments. "argv[argc]"
659+ * should have type VAR_UNKNOWN.
700660 * Returns NULL when calling the function fails.
701661 */
702662 void *
@@ -718,7 +678,7 @@ call_func_retstr(
718678
719679/*
720680 * Call Vim script function "func" and return the result as a List.
721- * Uses "argv" and "argc" as call_func_retnr ().
681+ * Uses "argv" and "argc" as call_func_retstr ().
722682 * Returns NULL when there is something wrong.
723683 */
724684 void *
@@ -4783,6 +4743,8 @@ set_ref_in_ht(hashtab_T *ht, int copyID, list_stack_T **list_stack)
47834743 return abort ;
47844744}
47854745
4746+ #if defined(FEAT_LUA ) || defined(FEAT_PYTHON ) || defined(FEAT_PYTHON3 ) \
4747+ || defined(PROTO )
47864748/*
47874749 * Mark a dict and its items with "copyID".
47884750 * Returns TRUE if setting references failed somehow.
@@ -4797,6 +4759,7 @@ set_ref_in_dict(dict_T *d, int copyID)
47974759 }
47984760 return FALSE;
47994761}
4762+ #endif
48004763
48014764/*
48024765 * Mark a list and its items with "copyID".
0 commit comments