From 1c81e86369d720659fb25edf93d06299af1eaa51 Mon Sep 17 00:00:00 2001 From: Tomas Mlcoch Date: Wed, 3 Jul 2013 13:57:30 +0200 Subject: [PATCH] refactoring --- src/python/sqlite-py.c | 6 ------ src/xml_dump_internal.h | 11 ++++++----- src/xml_parser_repomd.c | 1 - 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/src/python/sqlite-py.c b/src/python/sqlite-py.c index 69ca879..b720ff6 100644 --- a/src/python/sqlite-py.c +++ b/src/python/sqlite-py.c @@ -118,12 +118,6 @@ sqlite_repr(_SqliteObject *self) return PyString_FromFormat("", type); } -/* getsetters */ - -/* TODO: - * Export sqlite object - Maybe in future version? - */ - /* Sqlite methods */ static PyObject * diff --git a/src/xml_dump_internal.h b/src/xml_dump_internal.h index 64f3d46..8e3ce7d 100644 --- a/src/xml_dump_internal.h +++ b/src/xml_dump_internal.h @@ -42,8 +42,7 @@ extern "C" { #define DATESIZE_STR_MAX_LEN SIZE_STR_MAX_LEN #endif -/** - * Dump files from the package and append them to the node as childrens. +/** Dump files from the package and append them to the node as childrens. * @param node parent xml node * @param package cr_Package * @param primary process only primary files (see cr_is_primary() function @@ -51,8 +50,7 @@ extern "C" { */ void cr_xml_dump_files(xmlNodePtr node, cr_Package *package, int primary); -/** - * Createrepo wrapper over libxml xmlNewTextChild. +/** Createrepo_c wrapper over libxml xmlNewTextChild. * It allows content to be NULL and non UTF-8 (if content is no UTF8 * then iso-8859-1 is assumed). */ @@ -61,7 +59,10 @@ xmlNodePtr cr_xmlNewTextChild(xmlNodePtr parent, const xmlChar *name, const xmlChar *content); -/** TODO */ +/** Createrepo_c wrapper over the libxml xmlNewProp. + * It allows content to be NULL and non UTF-8 (if content is no UTF8 + * then iso-8859-1 is assumed) + */ xmlAttrPtr cr_xmlNewProp(xmlNodePtr node, const xmlChar *name, const xmlChar *value); diff --git a/src/xml_parser_repomd.c b/src/xml_parser_repomd.c index 9f660c6..4ac7b2a 100644 --- a/src/xml_parser_repomd.c +++ b/src/xml_parser_repomd.c @@ -36,7 +36,6 @@ /* TODO: * - replace atol function with better alternative - * - maybe in repomdrecord struct use gint64 instead of long */ typedef enum { -- 2.7.4