~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_lex.cc

  • Committer: Brian Aker
  • Date: 2008-11-26 21:37:50 UTC
  • Revision ID: brian@tangent.org-20081126213750-m96j23htwfymuwlt
Collection of dead code removal

Show diffs side-by-side

added added

removed removed

Lines of Context:
2073
2073
  query_tables= 0;
2074
2074
  query_tables_last= &query_tables;
2075
2075
  query_tables_own_last= 0;
2076
 
  if (init)
2077
 
  {
2078
 
    /*
2079
 
      We delay real initialization of hash (and therefore related
2080
 
      memory allocation) until first insertion into this hash.
2081
 
    */
2082
 
    hash_clear(&sroutines);
2083
 
  }
2084
 
  else if (sroutines.records)
2085
 
  {
2086
 
    /* Non-zero sroutines.records means that hash was initialized. */
2087
 
    my_hash_reset(&sroutines);
2088
 
  }
2089
 
  sroutines_list.empty();
2090
 
  sroutines_list_own_last= sroutines_list.next;
2091
 
  sroutines_list_own_elements= 0;
2092
 
  binlog_stmt_flags= 0;
2093
2076
}
2094
2077
 
2095
2078
 
2102
2085
 
2103
2086
void Query_tables_list::destroy_query_tables_list()
2104
2087
{
2105
 
  hash_free(&sroutines);
2106
2088
}
2107
2089
 
2108
2090
 
2441
2423
 
2442
2424
bool LEX::table_or_sp_used()
2443
2425
{
2444
 
  if (sroutines.records || query_tables)
 
2426
  if (query_tables)
2445
2427
    return(true);
2446
2428
 
2447
2429
  return(false);