Skip to content

Commit

Permalink
Removing unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
jjoyce0510 committed Sep 14, 2022
1 parent 39d8082 commit bc38c8f
Showing 1 changed file with 0 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import com.linkedin.entity.client.EntityClient;
import com.datahub.authentication.Authentication;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import lombok.extern.slf4j.Slf4j;

@Slf4j
Expand All @@ -51,24 +50,6 @@ public static List<MetadataChangeProposal> getAdditionalChanges(
.collect(Collectors.toList());
}

@Nullable
public static Aspect getLatestAspect(
Urn urn,
String aspectName,
EntityClient entityClient,
Authentication authentication
) throws Exception {
EntityResponse response = entityClient.getV2(
urn.getEntityType(),
urn,
ImmutableSet.of(aspectName),
authentication);
if (response != null && response.getAspects().containsKey(aspectName)) {
return response.getAspects().get(aspectName).getValue();
}
return null;
}

public static Map<Urn, Aspect> batchGetLatestAspect(
String entity,
Set<Urn> urns,
Expand Down

0 comments on commit bc38c8f

Please sign in to comment.