From 578e0f22e13e14abfd03681a8b327a2989792444 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 30 Jun 2017 23:30:33 +0200 Subject: formatNeedsBaseURI always returns true ...ever since the code's introduction with 9671014435807328ac33b70ad0383f392bfa67df "INTEGRATION: CWS odfmetadata" Change-Id: I18f5a18bf42b4b945b197f5294597fdfe2fbbeca --- unoxml/source/rdf/librdf_repository.cxx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'unoxml/source/rdf') 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 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); -- cgit