1
0
forked from aniani/vim

patch 9.1.0600: Unused function and unused error constants

Problem:  unused function typval_compare_class() and error constants
Solution: remove function typval_compare_class() and ifdef out
          unused error constants (Dominique Pellé)

closes: #15299

Signed-off-by: Dominique Pellé <dominique.pelle@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Dominique Pellé
2024-07-18 20:40:28 +02:00
committed by Christian Brabandt
parent aef6179bcf
commit 1165f7850b
4 changed files with 25 additions and 37 deletions

View File

@@ -1697,24 +1697,6 @@ typval_compare_blob(
return OK;
}
/*
* Compare "tv1" to "tv2" as classes according to "type".
* Put the result, false or true, in "res".
* Return FAIL and give an error message when the comparison can't be done.
*/
int
typval_compare_class(
typval_T *tv1,
typval_T *tv2,
exprtype_T type UNUSED,
int ic UNUSED,
int *res)
{
// TODO: use "type"
*res = tv1->vval.v_class == tv2->vval.v_class;
return OK;
}
/*
* Compare "tv1" to "tv2" as objects according to "type".
* Put the result, false or true, in "res".