summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-04-13 15:46:28 +0200
committerZenWalker <[email protected]>2020-04-13 23:31:49 +0200
commit16cac71e6d76b2e2e8f0542499e8a99fda1d46f1 (patch)
treec44b02de8b320c46e6bc3d2e4a63281fe74821a4
parent13ff0e99eef93aa8cfd987ed3f7fe6605b7e08dd (diff)
downloadatril-16cac71e6d76b2e2e8f0542499e8a99fda1d46f1.tar.bz2
atril-16cac71e6d76b2e2e8f0542499e8a99fda1d46f1.tar.xz
epub-document: Remove unused-variable warning
-rw-r--r--backend/epub/epub-document.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/backend/epub/epub-document.c b/backend/epub/epub-document.c
index a45fe935..9fef3e7d 100644
--- a/backend/epub/epub-document.c
+++ b/backend/epub/epub-document.c
@@ -499,7 +499,7 @@ xml_get_pointer_to_node(xmlChar* parserfor,
xmlChar* attributename,
xmlChar* attributevalue )
{
- xmlNodePtr topchild,children ;
+ xmlNodePtr topchild;
xmlretval = NULL ;
@@ -1330,7 +1330,6 @@ epub_document_get_info(EvDocument *document)
gchar* infofile ;
xmlNodePtr metanode ;
GString* buffer ;
- gchar* archive_dir = epub_document->tmp_archive_dir;
GString* containerpath = g_string_new(epub_document->tmp_archive_dir);
g_string_append_printf(containerpath,"/META-INF/container.xml");
@@ -1506,10 +1505,10 @@ add_night_sheet(contentListNode *listdata,gchar *sheet)
set_xml_root_node(NULL);
xmlNodePtr head = xml_get_pointer_to_node((xmlChar*)"head",NULL,NULL);
- xmlNodePtr link = xmlNewTextChild(head,NULL,(xmlChar*)"link",NULL);
- xmlAttrPtr href = xmlNewProp(link,(xmlChar*)"href",(xmlChar*)sheeturi);
- xmlAttrPtr rel = xmlNewProp(link,(xmlChar*)"rel",(xmlChar*)"alternate stylesheet");
- xmlAttrPtr class = xmlNewProp(link,(xmlChar*)"class",(xmlChar*)"night");
+ xmlNodePtr link = xmlNewTextChild (head, NULL, (xmlChar*) "link", NULL);
+ xmlNewProp (link, (xmlChar*) "href", (xmlChar*) sheeturi);
+ xmlNewProp (link, (xmlChar*) "rel", (xmlChar*) "alternate stylesheet");
+ xmlNewProp (link, (xmlChar*) "class", (xmlChar*) "night");
xmlSaveFormatFile (listdata->value, xmldocument, 0);
xml_free_doc();
@@ -1657,7 +1656,6 @@ static void
epub_document_add_mathJax(gchar* containeruri,gchar* documentdir)
{
gchar *containerfilename= g_filename_from_uri(containeruri,NULL,NULL);
- const gchar *backenddir = ev_backends_manager_get_backends_dir();
GString *mathjaxdir = g_string_new("/usr/share/javascript/mathjax");
gchar *mathjaxref = g_filename_to_uri(mathjaxdir->str,NULL,NULL);