[prev in list] [next in list] [prev in thread] [next in thread]
List: monetdb-checkins
Subject: MonetDB: default - Remove superflous code
From: Martin Kersten <commits () monetdb ! org>
Date: 2014-02-27 10:48:22
Message-ID: hg.469ffdb7bd65.1393498102.6315528441665844383 () monetdb2 ! cwi-incubator ! nl
[Download RAW message or body]
Changeset: 469ffdb7bd65 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=469ffdb7bd65
Removed Files:
monetdb5/optimizer/opt_compression.c
monetdb5/optimizer/opt_compression.h
Branch: default
Log Message:
Remove superflous code
diffs (106 lines):
diff --git a/monetdb5/optimizer/opt_compression.c b/monetdb5/optimizer/opt_compression.c
deleted file mode 100644
--- a/monetdb5/optimizer/opt_compression.c
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- * The contents of this file are subject to the MonetDB Public License
- * Version 1.1 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://www.monetdb.org/Legal/MonetDBLicense
- *
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * The Original Code is the MonetDB Database System.
- *
- * The Initial Developer of the Original Code is CWI.
- * Portions created by CWI are Copyright (C) 1997-July 2008 CWI.
- * Copyright August 2008-2014 MonetDB B.V.
- * All Rights Reserved.
- */
-
-#include "monetdb_config.h"
-#include "opt_compression.h"
-
-int
-OPTcompressionImplementation(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr p)
-{
- int i, actions=0, limit, k;
- InstrPtr *old, q;
- char buf[PATHLENGTH];
-
- (void) stk;
- (void) cntxt;
-
- limit= mb->stop;
- old = mb->stmt;
- if ( newMalBlkStmt(mb, mb->ssize) < 0)
- return 0;
- pushInstruction(mb,old[0]);
-
- for (i = 1; i<limit; i++) {
- p = old[i];
- if (getModuleId(p)== sqlRef && (getFunctionId(p) == bindRef) ) {
- pushInstruction(mb,p);
- q= newStmt(mb,bbpRef,decompressRef);
- setArgType(mb,q,0, getArgType(mb,p,0));
- setVarUDFtype(mb,getArg(q,0));
- k = getArg(p,0);
- getArg(p,0)= getArg(q,0);
- getArg(q,0)= k;
- q= pushArgument(mb,q,getArg(p,0));
- snprintf(buf,PATHLENGTH,"%s_%s_%s_%d",
- getVarConstant(mb,getArg(p,1)).val.sval,
- getVarConstant(mb,getArg(p,2)).val.sval,
- getVarConstant(mb,getArg(p,3)).val.sval,
- getVarConstant(mb,getArg(p,4)).val.ival);
- p= pushStr(mb,q,buf);
- actions++;
- continue;
- }
- pushInstruction(mb,p);
- }
-
- GDKfree(old);
-
- return actions;
-}
diff --git a/monetdb5/optimizer/opt_compression.h b/monetdb5/optimizer/opt_compression.h
deleted file mode 100644
--- a/monetdb5/optimizer/opt_compression.h
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * The contents of this file are subject to the MonetDB Public License
- * Version 1.1 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://www.monetdb.org/Legal/MonetDBLicense
- *
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * The Original Code is the MonetDB Database System.
- *
- * The Initial Developer of the Original Code is CWI.
- * Portions created by CWI are Copyright (C) 1997-July 2008 CWI.
- * Copyright August 2008-2014 MonetDB B.V.
- * All Rights Reserved.
- */
-
-#ifndef _OPT_COMPRESS_
-#define _OPT_COMPRESS_
-
-#include "opt_prelude.h"
-#include "opt_support.h"
-#include "mal_interpreter.h"
-
-opt_export int OPTcompressionImplementation(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr p);
-
-#define OPTDEBUGcompress if ( optDebug & ((lng)1 <<DEBUG_OPT_COMPRESS) )
-
-#endif
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic