From 9ca3d9ea9cc3518706dc8e0e0ac89a58c34dc260 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Fri, 2 Oct 2015 10:19:34 +0200 Subject: remove unused method --- sql/group_by_handler.h | 3 --- storage/sequence/sequence.cc | 9 --------- 2 files changed, 12 deletions(-) diff --git a/sql/group_by_handler.h b/sql/group_by_handler.h index e2d7c7396e0..2187ee0848e 100644 --- a/sql/group_by_handler.h +++ b/sql/group_by_handler.h @@ -118,9 +118,6 @@ public: /* End scanning */ virtual int end_scan()=0; - /* Information for optimizer (used by EXPLAIN) */ - virtual int info(uint flag, ha_statistics *stats)= 0; - /* Function that calls the above scan functions */ int execute(JOIN *join); diff --git a/storage/sequence/sequence.cc b/storage/sequence/sequence.cc index f11aee6bddc..ba8e157c3e4 100644 --- a/storage/sequence/sequence.cc +++ b/storage/sequence/sequence.cc @@ -377,7 +377,6 @@ public: int init_scan() { first_row= 1 ; return 0; } int next_row(); int end_scan() { return 0; } - int info(uint flag, ha_statistics *stats); }; static group_by_handler * @@ -449,14 +448,6 @@ bool ha_seq_group_by_handler::init(TABLE *temporary_table, Item *having_arg, } -int ha_seq_group_by_handler::info(uint flag, ha_statistics *stats) -{ - bzero(stats, sizeof(*stats)); - /* We only return one records for a SUM(*) without a group by */ - stats->records= 1; - return 0; -} - int ha_seq_group_by_handler::next_row() { List_iterator_fast it(*fields); -- cgit v1.2.1