summaryrefslogtreecommitdiff
path: root/sql/sql_lex.cc
diff options
context:
space:
mode:
authorunknown <konstantin@mysql.com>2006-07-01 00:14:28 +0400
committerunknown <konstantin@mysql.com>2006-07-01 00:14:28 +0400
commit0c7bc6e9d7e40a0d9072a7ac13661e818717dd9e (patch)
tree936a96dc4b6405e8b5c7ba03c748c86c56ec1fcd /sql/sql_lex.cc
parentfc085d77ade3e0cd77aebe1456c59b951301d722 (diff)
downloadmariadb-git-0c7bc6e9d7e40a0d9072a7ac13661e818717dd9e.tar.gz
Remove a couple of unused/barely used names.
sql/sql_lex.cc: Remove an unused thread key. sql/sql_lex.h: Remove an unused thread key, current_lex. sql/sql_parse.cc: Remove an unused thread key, current_lex macro.
Diffstat (limited to 'sql/sql_lex.cc')
-rw-r--r--sql/sql_lex.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc
index 47af816f41d..7d4dca15608 100644
--- a/sql/sql_lex.cc
+++ b/sql/sql_lex.cc
@@ -41,8 +41,6 @@ sys_var_long_ptr trg_new_row_fake_var(0, 0);
#define yySkip() lex->ptr++
#define yyLength() ((uint) (lex->ptr - lex->tok_start)-1)
-pthread_key(LEX*,THR_LEX);
-
/* Longest standard keyword name */
#define TOCK_NAME_LENGTH 24
@@ -91,8 +89,6 @@ void lex_init(void)
for (i=0 ; i < array_elements(sql_functions) ; i++)
sql_functions[i].length=(uchar) strlen(sql_functions[i].name);
- VOID(pthread_key_create(&THR_LEX,NULL));
-
DBUG_VOID_RETURN;
}