code cleanup: removed unused constructors and methods

parent aa7fd6f4
......@@ -470,19 +470,6 @@ String *Item_in_subselect::val_str(String *str)
return str;
}
Item_in_subselect::Item_in_subselect(Item_in_subselect *item):
Item_exists_subselect(item)
{
left_expr= item->left_expr;
abort_on_null= item->abort_on_null;
}
Item_allany_subselect::Item_allany_subselect(Item_allany_subselect *item):
Item_in_subselect(item)
{
func= item->func;
}
Item_subselect::trans_res
Item_in_subselect::single_value_transformer(JOIN *join,
Item *left_expr,
......
......@@ -56,17 +56,6 @@ class Item_subselect :public Item_result_field
EXISTS_SUBS, IN_SUBS, ALLANY_SUBS};
Item_subselect();
Item_subselect(Item_subselect *item)
{
substitution= item->substitution;
null_value= item->null_value;
decimals= item->decimals;
max_columns= item->max_columns;
engine= item->engine;
engine_owner= 0;
engine_changed= item->engine_changed;
name= item->name;
}
virtual subs_type substype() { return UNKNOWN_SUBS; }
......@@ -123,13 +112,6 @@ class Item_singlerow_subselect :public Item_subselect
Item_cache *value, **row;
public:
Item_singlerow_subselect(THD *thd, st_select_lex *select_lex);
Item_singlerow_subselect(Item_singlerow_subselect *item):
Item_subselect(item)
{
value= item->value;
max_length= item->max_length;
decimals= item->decimals;
}
subs_type substype() { return SINGLEROW_SUBS; }
......@@ -139,7 +121,6 @@ class Item_singlerow_subselect :public Item_subselect
double val();
longlong val_int ();
String *val_str (String *);
Item *new_item() { return new Item_singlerow_subselect(this); }
enum Item_result result_type() const;
void fix_length_and_dec();
......@@ -162,11 +143,6 @@ class Item_exists_subselect :public Item_subselect
public:
Item_exists_subselect(THD *thd, st_select_lex *select_lex);
Item_exists_subselect(Item_exists_subselect *item):
Item_subselect(item)
{
value= item->value;
}
Item_exists_subselect(): Item_subselect() {}
subs_type substype() { return EXISTS_SUBS; }
......@@ -175,7 +151,6 @@ class Item_exists_subselect :public Item_subselect
value= 0;
}
Item *new_item() { return new Item_exists_subselect(this); }
enum Item_result result_type() const { return INT_RESULT;}
longlong val_int();
double val();
......@@ -203,7 +178,6 @@ class Item_in_subselect :public Item_exists_subselect
bool abort_on_null;
public:
Item_in_subselect(THD *thd, Item * left_expr, st_select_lex *select_lex);
Item_in_subselect(Item_in_subselect *item);
Item_in_subselect(): Item_exists_subselect(), abort_on_null(0) {}
subs_type substype() { return IN_SUBS; }
......@@ -239,7 +213,7 @@ class Item_allany_subselect :public Item_in_subselect
public:
Item_allany_subselect(THD *thd, Item * left_expr, compare_func_creator f,
st_select_lex *select_lex);
Item_allany_subselect(Item_allany_subselect *item);
subs_type substype() { return ALLANY_SUBS; }
trans_res select_transformer(JOIN *join);
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment