From 099ff4bd38ecd9ab16273801a08ab3d2a9b60e7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=8A?= =?UTF-8?q?=D1=80=20=D0=9A=D1=83=D1=80=D1=82=D0=B0=D0=BA=D0=BE=D0=B2?= Date: Tue, 8 Aug 2023 09:52:42 +0300 Subject: [PATCH] Remove unused private methods --- .../bnd/maven/BndMavenLifecycleParticipant.java | 7 ------- .../core/resolver/MavenTargetDefinitionContent.java | 13 ------------- 2 files changed, 20 deletions(-) diff --git a/tycho-bnd-plugin/src/main/java/org/eclipse/tycho/bnd/maven/BndMavenLifecycleParticipant.java b/tycho-bnd-plugin/src/main/java/org/eclipse/tycho/bnd/maven/BndMavenLifecycleParticipant.java index 73a959c907..f6bdd82706 100644 --- a/tycho-bnd-plugin/src/main/java/org/eclipse/tycho/bnd/maven/BndMavenLifecycleParticipant.java +++ b/tycho-bnd-plugin/src/main/java/org/eclipse/tycho/bnd/maven/BndMavenLifecycleParticipant.java @@ -203,13 +203,6 @@ static boolean isBNDProject(MavenProject mavenProject) { } } - private void setProperty(Project project, String key, String value) { - String property = project.getProperty(key); - if (property == null || property.isBlank()) { - project.setProperty(key, value); - } - } - private void logError(String msg, Exception e) { if (logger.isDebugEnabled()) { logger.error(msg, e); diff --git a/tycho-core/src/main/java/org/eclipse/tycho/core/resolver/MavenTargetDefinitionContent.java b/tycho-core/src/main/java/org/eclipse/tycho/core/resolver/MavenTargetDefinitionContent.java index 59b20febe9..9c74b24c1b 100644 --- a/tycho-core/src/main/java/org/eclipse/tycho/core/resolver/MavenTargetDefinitionContent.java +++ b/tycho-core/src/main/java/org/eclipse/tycho/core/resolver/MavenTargetDefinitionContent.java @@ -421,19 +421,6 @@ public IMetadataRepository getMetadataRepository() { return metadataRepository; } - private static String getKey(IArtifactFacade artifact) { - if (artifact == null) { - return ""; - } - String key = artifact.getGroupId() + ":" + artifact.getArtifactId(); - String classifier = artifact.getClassifier(); - if (classifier != null) { - key += ":" + classifier; - } - key += ":" + artifact.getVersion(); - return key; - } - private static String getKey(Artifact artifact) { if (artifact == null) { return "";