From c8d9ec2cbb546bb426a91d9d40d4b00989cfe82e Mon Sep 17 00:00:00 2001 From: Eugene Kosov Date: Tue, 29 May 2018 23:25:50 +0300 Subject: [PATCH] Cleanup unused READ_RECORD::forms --- sql/records.cc | 1 - sql/records.h | 2 -- sql/sql_window.h | 1 - 3 files changed, 4 deletions(-) diff --git a/sql/records.cc b/sql/records.cc index 3decb8f1d24..fe2b2055c0e 100644 --- a/sql/records.cc +++ b/sql/records.cc @@ -194,7 +194,6 @@ bool init_read_record(READ_RECORD *info,THD *thd, TABLE *table, bzero((char*) info,sizeof(*info)); info->thd=thd; info->table=table; - info->forms= &info->table; /* Only one table */ info->addon_field= addon_field; if ((table->s->tmp_table == INTERNAL_TMP_TABLE || diff --git a/sql/records.h b/sql/records.h index 4f8e14da9ac..a4564df6146 100644 --- a/sql/records.h +++ b/sql/records.h @@ -52,8 +52,6 @@ struct READ_RECORD typedef int (*Setup_func)(struct st_join_table*); TABLE *table; /* Head-form */ - //handler *file; - TABLE **forms; /* head and ref forms */ Unlock_row_func unlock_row; Read_func read_record_func; THD *thd; diff --git a/sql/sql_window.h b/sql/sql_window.h index 21f2c8af108..373b367b211 100644 --- a/sql/sql_window.h +++ b/sql/sql_window.h @@ -18,7 +18,6 @@ #define SQL_WINDOW_INCLUDED #include "filesort.h" -#include "records.h" class Item_window_func;