summaryrefslogtreecommitdiff
path: root/unoxml
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-06-30 23:30:33 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-07-02 22:07:29 +0200
commit578e0f22e13e14abfd03681a8b327a2989792444 (patch)
tree8e8182bc70577f570a63b5882fea2ca63f7ef1d0 /unoxml
parentda00de7b5623d146e2121e4541e9362cd6d46f69 (diff)
formatNeedsBaseURI always returns true
...ever since the code's introduction with 9671014435807328ac33b70ad0383f392bfa67df "INTEGRATION: CWS odfmetadata" Change-Id: I18f5a18bf42b4b945b197f5294597fdfe2fbbeca
Diffstat (limited to 'unoxml')
-rw-r--r--unoxml/source/rdf/librdf_repository.cxx10
1 files changed, 2 insertions, 8 deletions
diff --git a/unoxml/source/rdf/librdf_repository.cxx b/unoxml/source/rdf/librdf_repository.cxx
index 9ca65e65b3b0..8224d6991d6c 100644
--- a/unoxml/source/rdf/librdf_repository.cxx
+++ b/unoxml/source/rdf/librdf_repository.cxx
@@ -860,12 +860,6 @@ uno::Reference< rdf::XBlankNode > SAL_CALL librdf_Repository::createBlankNode()
}
}
-bool formatNeedsBaseURI(::sal_Int16 i_Format)
-{
- (void) i_Format; //FIXME any which don't?
- return true;
-}
-
//void SAL_CALL
uno::Reference<rdf::XNamedGraph> SAL_CALL
librdf_Repository::importGraph(::sal_Int16 i_Format,
@@ -891,7 +885,7 @@ librdf_Repository::importGraph(::sal_Int16 i_Format,
throw lang::IllegalArgumentException(
"librdf_Repository::importGraph: URI is reserved", *this, 0);
}
- if (formatNeedsBaseURI(i_Format) && !i_xBaseURI.is()) {
+ if (!i_xBaseURI.is()) { //FIXME: any i_Format that don't need a base URI?
throw lang::IllegalArgumentException(
"librdf_Repository::importGraph: base URI is null", *this, 3);
}
@@ -1039,7 +1033,7 @@ librdf_Repository::exportGraph(::sal_Int16 i_Format,
"librdf_Repository::exportGraph: "
"graph name is null", *this, 2);
}
- if (formatNeedsBaseURI(i_Format) && !i_xBaseURI.is()) {
+ if (!i_xBaseURI.is()) { //FIXME: any i_Format that don't need a base URI?
throw lang::IllegalArgumentException(
"librdf_Repository::exportGraph: "
"base URI is null", *this, 3);