summaryrefslogtreecommitdiff
path: root/storage/connect/mycat.cc
diff options
context:
space:
mode:
authorOlivier Bertrand <bertrandop@gmail.com>2013-05-13 12:20:08 +0200
committerOlivier Bertrand <bertrandop@gmail.com>2013-05-13 12:20:08 +0200
commit24a7948343c712531236d4ec408178382433caa3 (patch)
tree6b5cfe16c6765527ae5bad1afc62b730f9d1c5b9 /storage/connect/mycat.cc
parentdee955bdee939506804fdc36bf33224e2b104926 (diff)
downloadmariadb-git-24a7948343c712531236d4ec408178382433caa3.tar.gz
- Code cleaning. Eliminating unused code, functions, and variables.
modified: storage/connect/catalog.h storage/connect/colblk.cpp storage/connect/colblk.h storage/connect/mycat.cc storage/connect/reldef.cpp storage/connect/tabcol.h storage/connect/tabsys.cpp storage/connect/tabsys.h storage/connect/xobject.h
Diffstat (limited to 'storage/connect/mycat.cc')
-rw-r--r--storage/connect/mycat.cc14
1 files changed, 1 insertions, 13 deletions
diff --git a/storage/connect/mycat.cc b/storage/connect/mycat.cc
index 7b7f79d7b58..35a66f0d1a2 100644
--- a/storage/connect/mycat.cc
+++ b/storage/connect/mycat.cc
@@ -256,15 +256,11 @@ uint GetFuncID(const char *func)
/***********************************************************************/
CATALOG::CATALOG(void)
{
-//To_Desc= NULL;
-//*DescFile= '\0';
#if defined(WIN32)
DataPath= ".\\";
#else // !WIN32
DataPath= "./";
#endif // !WIN32
- Descp= NULL;
-//memset(&DescArea, 0, sizeof(AREADEF));
memset(&Ctb, 0, sizeof(CURTAB));
Cbuf= NULL;
Cblen= 0;
@@ -279,17 +275,14 @@ CATALOG::CATALOG(void)
MYCAT::MYCAT(PHC hc) : CATALOG()
{
Hc= hc;
-//To_Desc= NULL;
DefHuge= false;
-//SepIndex= true; // Temporay until we can store offet and size
} // end of MYCAT constructor
/***********************************************************************/
-/* When using volatile storage, reset values pointing to Sarea. */
+/* Nothing to do for CONNECT. */
/***********************************************************************/
void MYCAT::Reset(void)
{
-//To_Desc= NULL;
} // end of Reset
/***********************************************************************/
@@ -597,10 +590,6 @@ PRELDEF MYCAT::GetTableDesc(PGLOBAL g, LPCSTR name,
if (xtrace)
printf("GetTableDesc: name=%s am=%s\n", name, SVP(type));
- // Firstly check whether this table descriptor is in memory
-//if (To_Desc)
-// return To_Desc;
-
// If not specified get the type of this table
if (!type && !(type= Hc->GetStringOption("Type")))
type= (Hc->GetStringOption("Tabname")) ? "PROXY" : "DOS";
@@ -708,7 +697,6 @@ PTDB MYCAT::GetTable(PGLOBAL g, PTABLE tablep, MODE mode, LPCSTR type)
/***********************************************************************/
void MYCAT::ClearDB(PGLOBAL g)
{
-//To_Desc= NULL;
} // end of ClearDB
/* ------------------------ End of MYCAT --------------------------- */