[tracker/wip/carlosg/domain-ontologies: 57/93] docs: Remove dead code



commit 916cd83ea31b197b29da27e1daf68e7e3f6828f5
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Jun 15 19:48:09 2017 +0200

    docs: Remove dead code
    
    This is basically unused, we use prefixes from ontology files
    themselves.

 docs/tools/Makefile.am |    4 +-
 docs/tools/qname.c     |  254 ------------------------------------------------
 docs/tools/qname.h     |   42 --------
 docs/tools/ttl_sgml.c  |    3 -
 4 files changed, 1 insertions(+), 302 deletions(-)
---
diff --git a/docs/tools/Makefile.am b/docs/tools/Makefile.am
index 0c2e5e4..b067d2f 100644
--- a/docs/tools/Makefile.am
+++ b/docs/tools/Makefile.am
@@ -20,9 +20,7 @@ TTL_LOADER_FILES =                                     \
        ttl_model.c                                    \
        ttl_model.h                                    \
        ttl_sgml.c                                     \
-       ttl_sgml.h                                     \
-       qname.c                                        \
-       qname.h
+       ttl_sgml.h
 
 ttl2sgml_SOURCES =                                     \
        $(TTL_LOADER_FILES)                            \
diff --git a/docs/tools/ttl_sgml.c b/docs/tools/ttl_sgml.c
index 6096c9a..b041def 100644
--- a/docs/tools/ttl_sgml.c
+++ b/docs/tools/ttl_sgml.c
@@ -21,7 +21,6 @@
 #include <string.h>
 
 #include "ttl_sgml.h"
-#include "qname.h"
 
 #define DEFAULT_COPYRIGHT "&copy; 2009, 2010 <ulink url=\"http://www.nokia.com/\";>Nokia</ulink>"
 
@@ -205,8 +204,6 @@ ttl_sgml_print (OntologyDescription *description,
        OntologyClass *def;
 
         upper_name = g_ascii_strup (description->localPrefix, -1);
-
-        qname_init (description->baseUrl, description->localPrefix, NULL);
        print_sgml_header (f, description);
 
        g_fprintf (f, "<xi:include href='../%s-introduction.xml'><xi:fallback/></xi:include>",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]