Skip to content

Commit

Permalink
Remove not used code.
Browse files Browse the repository at this point in the history
Change-Id: I510d92f51dc77b5dbe09d38e19c861f786566e97
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
  • Loading branch information
akurtakov authored and l3-g5 committed Feb 4, 2021
1 parent f7bb887 commit 81cafa9
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 53 deletions.
Expand Up @@ -12,8 +12,6 @@
*******************************************************************************/
package org.eclipse.epp.internal.mpc.core.transport.httpclient;

import java.util.Collection;
import java.util.Collections;
import java.util.List;

import org.apache.http.HttpRequestInterceptor;
Expand All @@ -25,12 +23,8 @@
import org.apache.http.impl.client.HttpClientBuilder;
import org.apache.http.impl.client.ProxyAuthenticationStrategy;
import org.apache.http.impl.client.TargetAuthenticationStrategy;
import org.eclipse.epp.internal.mpc.core.MarketplaceClientCore;
import org.eclipse.userstorage.internal.StorageProperties;
import org.osgi.framework.BundleContext;
import org.osgi.framework.FrameworkUtil;
import org.osgi.framework.InvalidSyntaxException;
import org.osgi.framework.ServiceReference;
import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.FieldOption;
import org.osgi.service.component.annotations.Reference;
Expand Down Expand Up @@ -210,21 +204,4 @@ private static CredentialsProvider customizeCredentialsProvider(HttpClientCustom
CredentialsProvider customCredentialsProvider = customizer.customizeCredentialsProvider(credentialsProvider);
return customCredentialsProvider == null ? credentialsProvider : customCredentialsProvider;
}

private static BundleContext getBundleContext() {
return FrameworkUtil.getBundle(HttpClientTransport.class).getBundleContext();
}

private static Collection<ServiceReference<HttpClientCustomizer>> getClientBuilderCustomizers(
BundleContext context) {
Collection<ServiceReference<HttpClientCustomizer>> serviceReferences;
try {
serviceReferences = context.getServiceReferences(HttpClientCustomizer.class,
/*TransportFactory.computeDisabledTransportsFilter()*/null);
} catch (InvalidSyntaxException e) {
MarketplaceClientCore.error(e);
serviceReferences = Collections.emptySet();
}
return serviceReferences;
}
}
Expand Up @@ -40,7 +40,7 @@ public class FallbackTransportFactory implements ITransportFactory {
private static final class FallbackTransport implements ITransport {
private final ITransport primaryTransport;

private ITransport fallbackTransport;
private final ITransport fallbackTransport;

private boolean primaryDisabled = false;

Expand Down Expand Up @@ -154,10 +154,6 @@ private InputStream primaryFailed(URI location, IProgressMonitor monitor, Except
return null;
}

void setFallbackTransport(ITransport fallbackTransport) {
this.fallbackTransport = fallbackTransport;
}

public ITransport getPrimaryTransport() {
return primaryTransport;
}
Expand Down
Expand Up @@ -12,7 +12,6 @@
*******************************************************************************/
package org.eclipse.epp.mpc.tests;

import java.util.Optional;
import java.util.function.Function;
import java.util.function.Predicate;

Expand Down Expand Up @@ -77,24 +76,6 @@ protected boolean doMatch(Object item) {
}
}

private static final class OptionalFunction<S, T> implements Function<Optional<S>, Optional<T>> {
private final Function<S, T> function;

public OptionalFunction(Function<S, T> function) {
super();
this.function = function;
}

@Override
public Optional<T> apply(Optional<S> value) {
if (!value.isPresent()) {
return Optional.empty();
}
T result = function.apply(value.get());
return Optional.ofNullable(result);
}
}

public static class OngoingTransformation<S, T> {
private final Function<S, T> transformation;

Expand Down
Expand Up @@ -108,8 +108,6 @@ public void applyTo(Map<String, String> metaParams) {

private static final String JAVA_PRODUCT_ID = "epp.package.java";

private static final String SDK_PRODUCT_ID = "org.eclipse.sdk.ide";

public static enum EclipseRelease {
UNKNOWN(null, null, null), //
KEPLER(JAVA_PRODUCT_ID, "2.0.0.20130613-0530", "4.3.0.v20130605-2000"), //
Expand Down
Expand Up @@ -21,7 +21,6 @@
import org.eclipse.core.runtime.Status;
import org.eclipse.core.runtime.jobs.Job;
import org.eclipse.epp.internal.mpc.ui.MarketplaceClientUi;
import org.eclipse.epp.internal.mpc.ui.MarketplaceClientDebug;
import org.eclipse.epp.internal.mpc.ui.Messages;
import org.eclipse.epp.mpc.core.model.INode;
import org.eclipse.epp.mpc.core.model.ISearchResult;
Expand Down
Expand Up @@ -888,7 +888,6 @@ private void updateBranding() {
disableTabSelection = true;
updateTitle();
CatalogDescriptor descriptor = configuration.getCatalogDescriptor();
ICatalogBranding oldBranding = currentBranding;
ICatalogBranding branding = descriptor == null ? null : descriptor.getCatalogBranding();
if (branding == null) {
branding = getDefaultBranding();
Expand Down
Expand Up @@ -16,7 +16,6 @@
import java.util.Arrays;

import org.eclipse.epp.internal.mpc.ui.css.StyleHelper;
import org.eclipse.epp.mpc.ui.CatalogDescriptor;
import org.eclipse.epp.mpc.ui.MarketplaceUrlHandler;
import org.eclipse.epp.mpc.ui.MarketplaceUrlHandler.SolutionInstallationInfo;
import org.eclipse.jface.dialogs.IDialogConstants;
Expand Down Expand Up @@ -51,7 +50,6 @@ protected void configureShell(Shell newShell) {
@Override
protected void proceedInstallation(String url) {
SolutionInstallationInfo info = MarketplaceUrlHandler.createSolutionInstallInfo(url);
CatalogDescriptor catalogDescriptor = info.getCatalogDescriptor();
String installItem = info.getInstallId();
//we ignore previous wizard state here, since the wizard is still open...
if (installItem != null && installItem.length() > 0) {
Expand Down

0 comments on commit 81cafa9

Please sign in to comment.