diff --git a/src/util/src/textbuffer.c b/src/util/src/textbuffer.c index 1811f43be012919eb2077b11fd27b06fe897869d..5652c0aca67998cdad8bdbaa44be8baec20906b8 100644 --- a/src/util/src/textbuffer.c +++ b/src/util/src/textbuffer.c @@ -897,7 +897,6 @@ static FORCE_INLINE int32_t columnValueAscendingComparator(char *f1, char *f2, i return (ret < 0) ? -1 : 1; }; case TSDB_DATA_TYPE_NCHAR: { - int32_t b = bytes / TSDB_NCHAR_SIZE; int32_t ret = tasoUcs4Compare(f1, f2, bytes); if (ret == 0) { return 0;