aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.ru>2022-05-26 18:33:28 +0300
committerthegeorg <thegeorg@yandex-team.ru>2022-05-26 18:33:28 +0300
commit370a8cfbcc8e1491b83e60cf336f522906460dd0 (patch)
treea7966da63d960cc5e38c3173ebb7b10e6f168deb /contrib
parentedadbba0d9a96c4bf2d575cf5c59704156378570 (diff)
downloadydb-370a8cfbcc8e1491b83e60cf336f522906460dd0.tar.gz
Remove unused source file from libxml
ref:534f8848b7449d36543ca1ed3c2706511d98d8ac
Diffstat (limited to 'contrib')
-rw-r--r--contrib/libs/libxml/.yandex_meta/devtools.licenses.report3
-rw-r--r--contrib/libs/libxml/DOCBparser.c305
2 files changed, 1 insertions, 307 deletions
diff --git a/contrib/libs/libxml/.yandex_meta/devtools.licenses.report b/contrib/libs/libxml/.yandex_meta/devtools.licenses.report
index e79eee80a1..7e07688dd8 100644
--- a/contrib/libs/libxml/.yandex_meta/devtools.licenses.report
+++ b/contrib/libs/libxml/.yandex_meta/devtools.licenses.report
@@ -190,7 +190,7 @@ BELONGS ya.make
KEEP MIT db4a32b2f76695e476e159b02d538062
BELONGS ya.make
-FILE_INCLUDE Copyright found in files: DOCBparser.c at line 8, HTMLparser.c at line 4, HTMLtree.c at line 4, SAX.c at line 5, SAX2.c at line 4, buf.c at line 10, c14n.c at line 8, catalog.c at line 10, debugXML.c at line 5, encoding.c at line 16, entities.c at line 4, error.c at line 4, globals.c at line 8, legacy.c at line 5, nanohttp.c at line 9, parser.c at line 28, parserInternals.c at line 5, pattern.c at line 9, relaxng.c at line 4, schematron.c at line 4, threads.c at line 4, uri.c at line 6, valid.c at line 5, xinclude.c at line 7, xlink.c at line 5, xmlIO.c at line 4, xmlmodule.c at line 4, xmlreader.c at line 8, xmlregexp.c at line 12, xmlsave.c at line 4, xmlschemas.c at line 5, xmlschemastypes.c at line 5, xmlstring.c at line 8, xpointer.c at line 12, xzlib.c at line 5
+FILE_INCLUDE Copyright found in files: HTMLparser.c at line 4, HTMLtree.c at line 4, SAX.c at line 5, SAX2.c at line 4, buf.c at line 10, c14n.c at line 8, catalog.c at line 10, debugXML.c at line 5, encoding.c at line 16, entities.c at line 4, error.c at line 4, globals.c at line 8, legacy.c at line 5, nanohttp.c at line 9, parser.c at line 28, parserInternals.c at line 5, pattern.c at line 9, relaxng.c at line 4, schematron.c at line 4, threads.c at line 4, uri.c at line 6, valid.c at line 5, xinclude.c at line 7, xlink.c at line 5, xmlIO.c at line 4, xmlmodule.c at line 4, xmlreader.c at line 8, xmlregexp.c at line 12, xmlsave.c at line 4, xmlschemas.c at line 5, xmlschemastypes.c at line 5, xmlstring.c at line 8, xpointer.c at line 12, xzlib.c at line 5
License text:
* See Copyright for the status of this software.
Scancode info:
@@ -199,7 +199,6 @@ FILE_INCLUDE Copyright found in files: DOCBparser.c at line 8, HTMLparser.c at l
Match type : REFERENCE
Links : https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/unknown-license-reference.LICENSE
Files with this license:
- DOCBparser.c [8:8]
HTMLparser.c [4:4]
HTMLtree.c [4:4]
SAX.c [5:5]
diff --git a/contrib/libs/libxml/DOCBparser.c b/contrib/libs/libxml/DOCBparser.c
deleted file mode 100644
index f12511b9e8..0000000000
--- a/contrib/libs/libxml/DOCBparser.c
+++ /dev/null
@@ -1,305 +0,0 @@
-/*
- * DOCBparser.c : an attempt to parse SGML Docbook documents
- *
- * This is deprecated !!!
- * Code removed with release 2.6.0 it was broken.
- * The doc are expect to be migrated to XML DocBook
- *
- * See Copyright for the status of this software.
- *
- * daniel@veillard.com
- */
-
-#define IN_LIBXML
-#include "libxml.h"
-#ifdef LIBXML_DOCB_ENABLED
-
-#include <libxml/xmlerror.h>
-#include <libxml/DOCBparser.h>
-
-/**
- * docbEncodeEntities:
- * @out: a pointer to an array of bytes to store the result
- * @outlen: the length of @out
- * @in: a pointer to an array of UTF-8 chars
- * @inlen: the length of @in
- * @quoteChar: the quote character to escape (' or ") or zero.
- *
- * Take a block of UTF-8 chars in and try to convert it to an ASCII
- * plus SGML entities block of chars out.
- *
- * Returns 0 if success, -2 if the transcoding fails, or -1 otherwise
- * The value of @inlen after return is the number of octets consumed
- * as the return value is positive, else unpredictable.
- * The value of @outlen after return is the number of octets consumed.
- */
-int
-docbEncodeEntities(unsigned char *out ATTRIBUTE_UNUSED,
- int *outlen ATTRIBUTE_UNUSED,
- const unsigned char *in ATTRIBUTE_UNUSED,
- int *inlen ATTRIBUTE_UNUSED,
- int quoteChar ATTRIBUTE_UNUSED)
-{
- static int deprecated = 0;
-
- if (!deprecated) {
- xmlGenericError(xmlGenericErrorContext,
- "docbEncodeEntities() deprecated function reached\n");
- deprecated = 1;
- }
- return(-1);
-}
-
-/**
- * docbParseDocument:
- * @ctxt: an SGML parser context
- *
- * parse an SGML document (and build a tree if using the standard SAX
- * interface).
- *
- * Returns 0, -1 in case of error. the parser context is augmented
- * as a result of the parsing.
- */
-
-int
-docbParseDocument(docbParserCtxtPtr ctxt ATTRIBUTE_UNUSED)
-{
- static int deprecated = 0;
-
- if (!deprecated) {
- xmlGenericError(xmlGenericErrorContext,
- "docbParseDocument() deprecated function reached\n");
- deprecated = 1;
- }
- return (xmlParseDocument(ctxt));
-}
-
-/**
- * docbFreeParserCtxt:
- * @ctxt: an SGML parser context
- *
- * Free all the memory used by a parser context. However the parsed
- * document in ctxt->myDoc is not freed.
- */
-
-void
-docbFreeParserCtxt(docbParserCtxtPtr ctxt ATTRIBUTE_UNUSED)
-{
- static int deprecated = 0;
-
- if (!deprecated) {
- xmlGenericError(xmlGenericErrorContext,
- "docbFreeParserCtxt() deprecated function reached\n");
- deprecated = 1;
- }
- xmlFreeParserCtxt(ctxt);
-}
-
-/**
- * docbParseChunk:
- * @ctxt: an XML parser context
- * @chunk: an char array
- * @size: the size in byte of the chunk
- * @terminate: last chunk indicator
- *
- * Parse a Chunk of memory
- *
- * Returns zero if no error, the xmlParserErrors otherwise.
- */
-int
-docbParseChunk(docbParserCtxtPtr ctxt ATTRIBUTE_UNUSED,
- const char *chunk ATTRIBUTE_UNUSED,
- int size ATTRIBUTE_UNUSED,
- int terminate ATTRIBUTE_UNUSED)
-{
- static int deprecated = 0;
-
- if (!deprecated) {
- xmlGenericError(xmlGenericErrorContext,
- "docbParseChunk() deprecated function reached\n");
- deprecated = 1;
- }
-
- return (xmlParseChunk(ctxt, chunk, size, terminate));
-}
-
-/**
- * docbCreatePushParserCtxt:
- * @sax: a SAX handler
- * @user_data: The user data returned on SAX callbacks
- * @chunk: a pointer to an array of chars
- * @size: number of chars in the array
- * @filename: an optional file name or URI
- * @enc: an optional encoding
- *
- * Create a parser context for using the DocBook SGML parser in push mode
- * To allow content encoding detection, @size should be >= 4
- * The value of @filename is used for fetching external entities
- * and error/warning reports.
- *
- * Returns the new parser context or NULL
- */
-docbParserCtxtPtr
-docbCreatePushParserCtxt(docbSAXHandlerPtr sax ATTRIBUTE_UNUSED,
- void *user_data ATTRIBUTE_UNUSED,
- const char *chunk ATTRIBUTE_UNUSED,
- int size ATTRIBUTE_UNUSED,
- const char *filename ATTRIBUTE_UNUSED,
- xmlCharEncoding enc ATTRIBUTE_UNUSED)
-{
- static int deprecated = 0;
-
- if (!deprecated) {
- xmlGenericError(xmlGenericErrorContext,
- "docbParseChunk() deprecated function reached\n");
- deprecated = 1;
- }
-
- return(xmlCreatePushParserCtxt(sax, user_data, chunk, size, filename));
-}
-
-/**
- * docbSAXParseDoc:
- * @cur: a pointer to an array of xmlChar
- * @encoding: a free form C string describing the SGML document encoding, or NULL
- * @sax: the SAX handler block
- * @userData: if using SAX, this pointer will be provided on callbacks.
- *
- * parse an SGML in-memory document and build a tree.
- * It use the given SAX function block to handle the parsing callback.
- * If sax is NULL, fallback to the default DOM tree building routines.
- *
- * Returns the resulting document tree
- */
-
-docbDocPtr
-docbSAXParseDoc(xmlChar * cur ATTRIBUTE_UNUSED,
- const char *encoding ATTRIBUTE_UNUSED,
- docbSAXHandlerPtr sax ATTRIBUTE_UNUSED,
- void *userData ATTRIBUTE_UNUSED)
-{
- static int deprecated = 0;
-
- if (!deprecated) {
- xmlGenericError(xmlGenericErrorContext,
- "docbParseChunk() deprecated function reached\n");
- deprecated = 1;
- }
-
- return (xmlSAXParseMemoryWithData(sax, (const char *)cur,
- xmlStrlen((const xmlChar *) cur), 0, userData));
-}
-
-/**
- * docbParseDoc:
- * @cur: a pointer to an array of xmlChar
- * @encoding: a free form C string describing the SGML document encoding, or NULL
- *
- * parse an SGML in-memory document and build a tree.
- *
- * Returns the resulting document tree
- */
-
-docbDocPtr
-docbParseDoc(xmlChar * cur ATTRIBUTE_UNUSED,
- const char *encoding ATTRIBUTE_UNUSED)
-{
- static int deprecated = 0;
-
- if (!deprecated) {
- xmlGenericError(xmlGenericErrorContext,
- "docbParseChunk() deprecated function reached\n");
- deprecated = 1;
- }
-
- return (xmlParseDoc(cur));
-}
-
-
-/**
- * docbCreateFileParserCtxt:
- * @filename: the filename
- * @encoding: the SGML document encoding, or NULL
- *
- * Create a parser context for a file content.
- * Automatic support for ZLIB/Compress compressed document is provided
- * by default if found at compile-time.
- *
- * Returns the new parser context or NULL
- */
-docbParserCtxtPtr
-docbCreateFileParserCtxt(const char *filename ATTRIBUTE_UNUSED,
- const char *encoding ATTRIBUTE_UNUSED)
-{
- static int deprecated = 0;
-
- if (!deprecated) {
- xmlGenericError(xmlGenericErrorContext,
- "docbCreateFileParserCtxt() deprecated function reached\n");
- deprecated = 1;
- }
-
- return (xmlCreateFileParserCtxt(filename));
-}
-
-/**
- * docbSAXParseFile:
- * @filename: the filename
- * @encoding: a free form C string describing the SGML document encoding, or NULL
- * @sax: the SAX handler block
- * @userData: if using SAX, this pointer will be provided on callbacks.
- *
- * parse an SGML file and build a tree. Automatic support for ZLIB/Compress
- * compressed document is provided by default if found at compile-time.
- * It use the given SAX function block to handle the parsing callback.
- * If sax is NULL, fallback to the default DOM tree building routines.
- *
- * Returns the resulting document tree
- */
-
-docbDocPtr
-docbSAXParseFile(const char *filename ATTRIBUTE_UNUSED,
- const char *encoding ATTRIBUTE_UNUSED,
- docbSAXHandlerPtr sax ATTRIBUTE_UNUSED,
- void *userData ATTRIBUTE_UNUSED)
-{
- static int deprecated = 0;
-
- if (!deprecated) {
- xmlGenericError(xmlGenericErrorContext,
- "docbSAXParseFile() deprecated function reached\n");
- deprecated = 1;
- }
-
- return (xmlSAXParseFileWithData(sax, filename, 0, userData));
-}
-
-/**
- * docbParseFile:
- * @filename: the filename
- * @encoding: a free form C string describing document encoding, or NULL
- *
- * parse a Docbook SGML file and build a tree. Automatic support for
- * ZLIB/Compress compressed document is provided by default if found
- * at compile-time.
- *
- * Returns the resulting document tree
- */
-
-docbDocPtr
-docbParseFile(const char *filename ATTRIBUTE_UNUSED,
- const char *encoding ATTRIBUTE_UNUSED)
-{
- static int deprecated = 0;
-
- if (!deprecated) {
- xmlGenericError(xmlGenericErrorContext,
- "docbParseFile() deprecated function reached\n");
- deprecated = 1;
- }
-
- return (xmlParseFile(filename));
-}
-#define bottom_DOCBparser
-#include "elfgcchack.h"
-#endif /* LIBXML_DOCB_ENABLED */