Changeset: 5c5ebe2c3bd4 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=5c5ebe2c3bd4
Removed Files:
        monetdb5/mal/mal_xml.c
        monetdb5/mal/mal_xml.h
Modified Files:
        monetdb5/mal/Makefile.ag
Branch: default
Log Message:

Remove superflous utility


diffs (117 lines):

diff --git a/monetdb5/mal/Makefile.ag b/monetdb5/mal/Makefile.ag
--- a/monetdb5/mal/Makefile.ag
+++ b/monetdb5/mal/Makefile.ag
@@ -60,7 +60,6 @@ lib_mal = {
                mal_stack.c mal_stack.h \
                mal_type.c mal_type.h \
                mal_utils.c mal_utils.h \
-               mal_xml.c mal_xml.h \
                mal_private.h
 }
 
diff --git a/monetdb5/mal/mal_xml.c b/monetdb5/mal/mal_xml.c
deleted file mode 100644
--- a/monetdb5/mal/mal_xml.c
+++ /dev/null
@@ -1,69 +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.
- */
-
-/*
- * (c) M. Kersten
- *  XML interface
- * The primitives to manipulate XML objects and to prepare for XML output
- * is collected in this single file. It is expected to grow out into
- * all the primitives needed to support an XML front-end.
- */
-#include "monetdb_config.h"
-#include "mal_xml.h"
-char *
-xmlChr(str s)
-{
-       static char buf[BUFSIZ + 5];
-       char *c = buf, *lim = buf + BUFSIZ;
-
-       while (s && c < lim && *s) {
-               switch (*s) {
-               case '_':
-                       sprintf(c, "\\_");
-                       c += 2;
-                       break;
-               case '$':
-                       sprintf(c, "\\$");
-                       c += 2;
-                       break;
-               case '%':
-                       sprintf(c, "\\%%");
-                       c += 4;
-                       break;
-               case '<':
-                       sprintf(c, "$&lt;$");
-                       c += 6;
-                       break;
-               case '>':
-                       sprintf(c, "$&gt;$");
-                       c += 6;
-                       break;
-               case '&':
-                       sprintf(c, "&amp;");
-                       c += 5;
-                       break;
-               default:
-                       *c++ = *s;
-               }
-               s++;
-       }
-       *c = 0;
-       return buf;
-}
-
diff --git a/monetdb5/mal/mal_xml.h b/monetdb5/mal/mal_xml.h
deleted file mode 100644
--- a/monetdb5/mal/mal_xml.h
+++ /dev/null
@@ -1,27 +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 _MAL_XML_H
-#define _MAL_XML_H
-
-#include "mal.h"
-
-mal_export char *xmlChr(str s);
-
-#endif /* _MAL_XML_H */
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to