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



commit c7d792f9138d2d5f4f5b0e86c08f78e6bbc4d5f7
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/meson.build |    1 -
 docs/tools/qname.c     |  254 ------------------------------------------------
 docs/tools/qname.h     |   42 --------
 docs/tools/ttl_sgml.c  |    3 -
 5 files changed, 1 insertions(+), 303 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/meson.build b/docs/tools/meson.build
index cf24f0e..4092ae2 100644
--- a/docs/tools/meson.build
+++ b/docs/tools/meson.build
@@ -4,7 +4,6 @@ ttl_loader_files = [
     'ttl_loader.c',
     'ttl_model.c',
     'ttl_sgml.c',
-    'qname.c',
 ]
 
 ttl2sgml = executable('ttl2sgml',
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]