summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-01-27 12:03:48 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-01-27 12:03:48 +0100
commit12ffd3ecdd8c138a478d1665d01969639b3914f6 (patch)
tree2a30c7978e7ffca58d3e132965a34c7b6497cd93 /scripting
parent53a9e834f082864486441efd68fc8ff29d33fc95 (diff)
Remove dead code
...dead ever since its introduction in d86602573305ac7c8583794a37c4bd0572b41577 "#i17307#: XFunction->XScript etc" Change-Id: I664ff15ec2e9fda000bae7740ced427a646ddc92
Diffstat (limited to 'scripting')
-rw-r--r--scripting/source/provider/ScriptImpl.cxx99
-rw-r--r--scripting/source/provider/ScriptImpl.hxx103
2 files changed, 0 insertions, 202 deletions
diff --git a/scripting/source/provider/ScriptImpl.cxx b/scripting/source/provider/ScriptImpl.cxx
deleted file mode 100644
index b3cb96f29cbc..000000000000
--- a/scripting/source/provider/ScriptImpl.cxx
+++ /dev/null
@@ -1,99 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-
-#include "ScriptImpl.hxx"
-#include "sal/log.hxx"
-
-using namespace ::com::sun::star;
-using namespace ::com::sun::star::uno;
-using namespace ::com::sun::star::script::framework;
-
-namespace func_provider
-{
-
-
-ScriptImpl::ScriptImpl(
- const Reference< beans::XPropertySet > & scriptingContext,
- const Reference< runtime::XScriptInvocation > & runtimeMgr,
- const OUString& scriptURI )
-throw ( RuntimeException ) :
- m_XScriptingContext( scriptingContext, UNO_SET_THROW ),
- m_RunTimeManager( runtimeMgr, UNO_SET_THROW ),
- m_ScriptURI( scriptURI )
-{
- SAL_INFO("scripting.provider", "<!constructing a ScriptImpl>" );
-}
-
-
-ScriptImpl::~ScriptImpl()
-{
- SAL_INFO("scripting.provider", "<Destructing a ScriptImpl>" );
-}
-
-
-Any SAL_CALL
-ScriptImpl::invoke( const Sequence< Any >& aParams,
- Sequence< sal_Int16 >& aOutParamIndex, Sequence< Any >& aOutParam )
-throw ( lang::IllegalArgumentException, script::CannotConvertException,
- reflection::InvocationTargetException, RuntimeException )
-{
- SAL_INFO("scripting.provider", "<ScriptImpl::invoke>" );
- Any result;
- Any anyScriptingContext;
-
- anyScriptingContext <<= m_XScriptingContext;
- try
- {
- result = m_RunTimeManager->invoke( m_ScriptURI, anyScriptingContext, aParams,
- aOutParamIndex, aOutParam );
- }
- catch ( const lang::IllegalArgumentException & iae )
- {
- OUString temp = "ScriptImpl::invoke IllegalArgumentException : ";
- throw lang::IllegalArgumentException( temp.concat( iae.Message ),
- Reference< XInterface > (),
- iae.ArgumentPosition );
- }
- catch ( const script::CannotConvertException & cce )
- {
- OUString temp = "ScriptImpl::invoke CannotConvertException : ";
- throw script::CannotConvertException( temp.concat( cce.Message ),
- Reference< XInterface > (),
- cce.DestinationTypeClass,
- cce.Reason,
- cce.ArgumentIndex );
- }
- catch ( const reflection::InvocationTargetException & ite )
- {
- OUString temp = "ScriptImpl::invoke InvocationTargetException : ";
- throw reflection::InvocationTargetException( temp.concat( ite.Message ),
- Reference< XInterface > (),
- ite.TargetException );
- }
- catch ( const RuntimeException & re )
- {
- OUString temp = "ScriptImpl::invoke RuntimeException : ";
- throw RuntimeException( temp.concat( re.Message ) );
- }
- return result;
-}
-} // namespace func_provider
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/scripting/source/provider/ScriptImpl.hxx b/scripting/source/provider/ScriptImpl.hxx
deleted file mode 100644
index 773ee22c11eb..000000000000
--- a/scripting/source/provider/ScriptImpl.hxx
+++ /dev/null
@@ -1,103 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef INCLUDED_SCRIPTING_SOURCE_PROVIDER_SCRIPTIMPL_HXX
-#define INCLUDED_SCRIPTING_SOURCE_PROVIDER_SCRIPTIMPL_HXX
-
-#include <cppuhelper/implbase.hxx>
-#include <osl/mutex.hxx>
-
-#include <com/sun/star/lang/IllegalArgumentException.hpp>
-#include <com/sun/star/uno/RuntimeException.hpp>
-#include <com/sun/star/script/CannotConvertException.hpp>
-#include <com/sun/star/beans/XPropertySet.hpp>
-#include <com/sun/star/reflection/InvocationTargetException.hpp>
-
-#include <drafts/com/sun/star/script/framework/provider/XScript.hpp>
-#include <drafts/com/sun/star/script/framework/runtime/XScriptInvocation.hpp>
-
-namespace func_provider
-{
-
-class ScriptImpl :
- public ::cppu::WeakImplHelper < ::draftscss::script::framework::provider::XScript >
-{
-
-public:
- /*************************************************************
- ScriptImpl Constructor
- @param runtimeMgr which is a service that implement a XScriptInvocation
- @param scriptURI the received ScriptURI that needs to be resolve and invoked
- */
- ScriptImpl(
- const css::uno::Reference< css::beans::XPropertySet > & scriptingContext,
- const css::uno::Reference< ::draftscss::script::framework::runtime::XScriptInvocation > & runtimeMgr,
- const OUString& scriptURI )
- throw ( css::uno::RuntimeException );
-
- /*************************************************************
- ScriptImpl Destructor
- */
- ~ScriptImpl();
-
- /*************************************************************
- Invoke
- @param aParams all parameters; pure, out params are undefined in sequence,
- i.e., the value has to be ignored by the callee
- @param aOutParamIndex out indices
- @param aOutParam out parameters
-
- @returns
- the value returned from the function being invoked
-
- @throws IllegalArgumentException
- if there is no matching script name
-
- @throws CannotConvertException
- if args do not match or cannot be converted the those
- of the invoked
-
- @throws InvocationTargetException
- if the running script throws an exception this information is captured and
- rethrown as this exception type.
-
- */
- virtual css::uno::Any SAL_CALL invoke(
- const css::uno::Sequence< css::uno::Any > & aParams,
- css::uno::Sequence< sal_Int16 > & aOutParamIndex,
- css::uno::Sequence< css::uno::Any > & aOutParam )
- throw ( css::lang::IllegalArgumentException,
- css::script::CannotConvertException,
- css::reflection::InvocationTargetException,
- css::uno::RuntimeException );
-
-private:
- css::uno::Reference< css::beans::XPropertySet > m_XScriptingContext;
- css::uno::Reference < ::draftscss::script::framework::runtime::XScriptInvocation > m_RunTimeManager;
- OUString m_ScriptURI;
-
- /* copy ctor disabled, i.e. not defined */
- ScriptImpl( const ScriptImpl& );
- /* assignment disabled, i.e. not defined */
- ScriptImpl& operator = ( const ScriptImpl& );
-};
-} // namespace func_provider
-#endif // INCLUDED_SCRIPTING_SOURCE_PROVIDER_SCRIPTIMPL_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */