diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-08-08 10:01:17 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-08-08 11:06:35 +0200 |
commit | 664eea94a29a44a58d6217663047a5ce0ba6dc55 (patch) | |
tree | 81f107a8acf6d53e632ccd95713cb44fba8ad84b | |
parent | 7f28da80ae695fe84c15991afc564b523614d1ee (diff) |
Remove unused NoSuitableClassLoaderException
It was introduced with 980aa9b06ca521363ae4175f349becd4cdd501aa "#i19331#" (or
at least moved to its current place there, with older traces lost to history),
but its only actual use in the code has since been removed with
8087d5389f8d1133f119a9e6db88f91229831b61 "Java new cannot return null".
(In theory, there could be 3rd-party scripting providers that hook into the
framework and use that class, but, practically, chances should be low.)
Change-Id: I8586fccf120c93391308ede547bbeec6fabf2743
Reviewed-on: https://gerrit.libreoffice.org/77142
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r-- | scripting/Jar_ScriptFramework.mk | 1 | ||||
-rw-r--r-- | scripting/java/com/sun/star/script/framework/provider/NoSuitableClassLoaderException.java | 42 |
2 files changed, 0 insertions, 43 deletions
diff --git a/scripting/Jar_ScriptFramework.mk b/scripting/Jar_ScriptFramework.mk index fe728a2d3e57..9bf31b62cb64 100644 --- a/scripting/Jar_ScriptFramework.mk +++ b/scripting/Jar_ScriptFramework.mk @@ -46,7 +46,6 @@ $(eval $(call gb_Jar_add_sourcefiles,ScriptFramework,\ scripting/java/com/sun/star/script/framework/log/LogUtils \ scripting/java/com/sun/star/script/framework/provider/ClassLoaderFactory \ scripting/java/com/sun/star/script/framework/provider/EditorScriptContext \ - scripting/java/com/sun/star/script/framework/provider/NoSuitableClassLoaderException \ scripting/java/com/sun/star/script/framework/provider/PathUtils \ scripting/java/com/sun/star/script/framework/provider/ScriptContext \ scripting/java/com/sun/star/script/framework/provider/ScriptEditor \ diff --git a/scripting/java/com/sun/star/script/framework/provider/NoSuitableClassLoaderException.java b/scripting/java/com/sun/star/script/framework/provider/NoSuitableClassLoaderException.java deleted file mode 100644 index a2b0c6b1d7cb..000000000000 --- a/scripting/java/com/sun/star/script/framework/provider/NoSuitableClassLoaderException.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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 . - */ - -package com.sun.star.script.framework.provider; - -public class NoSuitableClassLoaderException extends Exception { - - /** - * Constructs an <code>NoSuitableClassLoaderException</code> with <code>null</code> - * as its error detail message. - */ - public NoSuitableClassLoaderException() { - super(); - } - - /** - * Constructs an <code>NoSuitBaleClassLoaderException</code> with the specified detail - * message. The error message string <code>s</code> can later be - * retrieved by the <code>{@link java.lang.Throwable#getMessage}</code> - * method of class <code>java.lang.Throwable</code>. - * - * @param s the detail message. - */ - public NoSuitableClassLoaderException(String s) { - super(s); - } -}
\ No newline at end of file |