You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@aries.apache.org by cs...@apache.org on 2016/11/24 10:53:26 UTC
[22/50] [abbrv] aries-jax-rs-whiteboard git commit: Remove unused code
Remove unused code
Project: http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/repo
Commit: http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/commit/2cd18949
Tree: http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/tree/2cd18949
Diff: http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/diff/2cd18949
Branch: refs/heads/master
Commit: 2cd18949a6fc7d346dd553fe5bf2caa48ea1cfb8
Parents: c7de775
Author: Carlos Sierra <ca...@liferay.com>
Authored: Tue Oct 25 18:48:14 2016 +0200
Committer: Carlos Sierra <ca...@liferay.com>
Committed: Tue Oct 25 18:48:14 2016 +0200
----------------------------------------------------------------------
.../remote/cxf/common/ServicesRegistrator.java | 19 +------------------
1 file changed, 1 insertion(+), 18 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/blob/2cd18949/org.apache.aries.jax-rs.cxf-common/src/main/java/com/liferay/portal/remote/cxf/common/ServicesRegistrator.java
----------------------------------------------------------------------
diff --git a/org.apache.aries.jax-rs.cxf-common/src/main/java/com/liferay/portal/remote/cxf/common/ServicesRegistrator.java b/org.apache.aries.jax-rs.cxf-common/src/main/java/com/liferay/portal/remote/cxf/common/ServicesRegistrator.java
index 68d79f6..8169e78 100644
--- a/org.apache.aries.jax-rs.cxf-common/src/main/java/com/liferay/portal/remote/cxf/common/ServicesRegistrator.java
+++ b/org.apache.aries.jax-rs.cxf-common/src/main/java/com/liferay/portal/remote/cxf/common/ServicesRegistrator.java
@@ -43,21 +43,6 @@ public class ServicesRegistrator {
_properties = properties;
}
- @SuppressWarnings("unused")
- protected void addExtension(
- Map<String, Object> properties, Object extension) {
-
- Class<?> extensionClass = (Class<?>) properties.get(
- "cxf.extension.class");
-
- if (extensionClass == null) {
- extensionClass = extension.getClass();
- }
-
- _extensions.put(extensionClass, extension);
- }
-
- @SuppressWarnings("unused")
public void start() {
Dictionary<String, Object> properties = new Hashtable<>();
@@ -89,7 +74,7 @@ public class ServicesRegistrator {
(CXFBusFactory) CXFBusFactory.newInstance(
CXFBusFactory.class.getName());
- Bus bus = cxfBusFactory.createBus(_extensions);
+ Bus bus = cxfBusFactory.createBus();
properties = new Hashtable<>();
@@ -117,7 +102,6 @@ public class ServicesRegistrator {
Bus.class, bus, properties);
}
- @SuppressWarnings("unused")
public void stop() {
try {
_busServiceRegistration.unregister();
@@ -159,7 +143,6 @@ public class ServicesRegistrator {
private final BundleContext _bundleContext;
private ServiceRegistration<Bus> _busServiceRegistration;
- private final Map<Class<?>, Object> _extensions = new HashMap<>();
private final Map<String, Object> _properties;
private ServiceRegistration<ServletContextHelper>
_servletContextHelperServiceRegistration;