From 2d775fd01acb7954b89c7e8032b863e9d6765d00 Mon Sep 17 00:00:00 2001 From: Alexander Barkov Date: Thu, 30 Nov 2023 05:32:09 +0400 Subject: [PATCH] Cleanup: Removing the unused method Type_handler::get_handler_by_cmp_type It's not used in 10.5+ --- sql/sql_type.cc | 16 ---------------- sql/sql_type.h | 1 - 2 files changed, 17 deletions(-) diff --git a/sql/sql_type.cc b/sql/sql_type.cc index e7058f6b4ed..13e61a40be2 100644 --- a/sql/sql_type.cc +++ b/sql/sql_type.cc @@ -1451,22 +1451,6 @@ Type_handler_string_result::charset_for_protocol(const Item *item) const } -const Type_handler * -Type_handler::get_handler_by_cmp_type(Item_result type) -{ - switch (type) { - case REAL_RESULT: return &type_handler_double; - case INT_RESULT: return &type_handler_slonglong; - case DECIMAL_RESULT: return &type_handler_newdecimal; - case STRING_RESULT: return &type_handler_long_blob; - case TIME_RESULT: return &type_handler_datetime; - case ROW_RESULT: return &type_handler_row; - } - DBUG_ASSERT(0); - return &type_handler_string; -} - - /* If we have a mixture of: - a MariaDB standard (built-in permanent) data type, and diff --git a/sql/sql_type.h b/sql/sql_type.h index ee3eb454ead..edce7f45abe 100644 --- a/sql/sql_type.h +++ b/sql/sql_type.h @@ -3669,7 +3669,6 @@ public: static const Type_handler *blob_type_handler(const Item *item); static const Type_handler *get_handler_by_field_type(enum_field_types type); static const Type_handler *get_handler_by_real_type(enum_field_types type); - static const Type_handler *get_handler_by_cmp_type(Item_result type); static const Type_collection * type_collection_for_aggregation(const Type_handler *h1, const Type_handler *h2);