summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.org>2016-07-05 15:23:22 +0400
committerAlexander Barkov <bar@mariadb.org>2016-07-05 15:23:22 +0400
commitd1b25890745a140446e4bdd5fd4f489ce1f76fae (patch)
tree14a0655fc322417cb6debbe4abc929a135cd6375
parent1ec91803aca76c999d34d9f17938b976093cb67a (diff)
downloadmariadb-git-d1b25890745a140446e4bdd5fd4f489ce1f76fae.tar.gz
Removing class Item_func_integer. It's not used since MySQL-5.0.
-rw-r--r--sql/item_func.cc9
-rw-r--r--sql/item_func.h7
2 files changed, 0 insertions, 16 deletions
diff --git a/sql/item_func.cc b/sql/item_func.cc
index 0d21183cac8..47ad756144a 100644
--- a/sql/item_func.cc
+++ b/sql/item_func.cc
@@ -2313,15 +2313,6 @@ longlong Item_func_bit_neg::val_int()
// Conversion functions
-void Item_func_integer::fix_length_and_dec()
-{
- max_length=args[0]->max_length - args[0]->decimals+1;
- uint tmp=float_length(decimals);
- set_if_smaller(max_length,tmp);
- decimals=0;
-}
-
-
void Item_func_int_val::fix_length_and_dec()
{
DBUG_ENTER("Item_func_int_val::fix_length_and_dec");
diff --git a/sql/item_func.h b/sql/item_func.h
index 47af2a3f898..4a55bd68453 100644
--- a/sql/item_func.h
+++ b/sql/item_func.h
@@ -949,13 +949,6 @@ public:
const char *func_name() const { return "cot"; }
};
-class Item_func_integer :public Item_int_func
-{
-public:
- inline Item_func_integer(THD *thd, Item *a): Item_int_func(thd, a) {}
- void fix_length_and_dec();
-};
-
class Item_func_int_val :public Item_func_num1
{