~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table.cc

  • Committer: Brian Aker
  • Date: 2009-11-03 00:48:13 UTC
  • Revision ID: brian@gaz-20091103004813-05ugqjmk6as49yq2
Remove dead function.

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
  return (unsigned char*) (*buff)->field_name;
65
65
}
66
66
 
67
 
 
68
 
/*
69
 
  Returns pointer to '.frm' extension of the file name.
70
 
 
71
 
  SYNOPSIS
72
 
    fn_rext()
73
 
    name       file name
74
 
 
75
 
  DESCRIPTION
76
 
    Checks file name part starting with the rightmost '.' character,
77
 
    and returns it if it is equal to '.dfe'.
78
 
 
79
 
  TODO
80
 
    It is a good idea to get rid of this function modifying the code
81
 
    to garantee that the functions presently calling fn_rext() always
82
 
    get arguments in the same format: either with '.frm' or without '.frm'.
83
 
 
84
 
  RETURN VALUES
85
 
    Pointer to the '.frm' extension. If there is no extension,
86
 
    or extension is not '.frm', pointer at the end of file name.
87
 
*/
88
 
 
89
 
const char *fn_rext(const char *name)
90
 
{
91
 
  const char *res= strrchr(name, '.');
92
 
  if (res && !strcmp(res, ".dfe"))
93
 
    return res;
94
 
  return name + strlen(name);
95
 
}
96
 
 
97
67
static TABLE_CATEGORY get_table_category(const LEX_STRING *db)
98
68
{
99
69
  assert(db != NULL);