From 304ebfad5193c857e4edf18cb05d61b6ccc1f7d0 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 13 Feb 2023 16:59:14 +0100 Subject: XSLT2Transformer::create should always succeed Change-Id: Ie2aa4fe48da2362ff1a88fa44a51bed498a4f432 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146935 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- filter/source/xsltfilter/XSLTFilter.cxx | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/filter/source/xsltfilter/XSLTFilter.cxx b/filter/source/xsltfilter/XSLTFilter.cxx index f08933276055..dd4b8551fce0 100644 --- a/filter/source/xsltfilter/XSLTFilter.cxx +++ b/filter/source/xsltfilter/XSLTFilter.cxx @@ -236,17 +236,7 @@ namespace XSLT // service name there) if (rTransformer.toBoolean() || rTransformer.startsWith("com.sun.")) { - try - { - xTransformer = xslt::XSLT2Transformer::create(m_xContext, rArgs); - } - catch (const Exception&) - { - // TODO: put a dialog telling about the need to install - // xslt2-transformer extension here - SAL_WARN("filter.xslt", "could not create XSLT 2.0 transformer"); - throw; - } + xTransformer = xslt::XSLT2Transformer::create(m_xContext, rArgs); } // instantiation of XSLT 2.0 transformer service failed, or the -- cgit