Skip to content

Commit

Permalink
Automatic code cleanup.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 514995345
Change-Id: I3dfcf9c511a0147fb0a5851c3b2549fd8d521c04
  • Loading branch information
Googler authored and copybara-github committed Mar 8, 2023
1 parent 67f1d96 commit 56a9efb
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 76 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,6 @@ public DecompressorValue(Path repositoryPath) {
directory = repositoryPath;
}

public Path getDirectory() {
return directory;
}

@Override
public boolean equals(Object other) {
return this == other || (other instanceof DecompressorValue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,36 +14,4 @@

package com.google.devtools.build.lib.bazel.repository;

import com.google.devtools.build.lib.events.ExtendedEventHandler.FetchProgress;

/** Event reporting on progress mading fetching a remote git repository. */
public class GitFetchProgress implements FetchProgress {
private final String remote;
private final String message;
private final boolean isFinished;

GitFetchProgress(String remote, String message, boolean isFinished) {
this.remote = remote;
this.message = message;
this.isFinished = isFinished;
}

GitFetchProgress(String remote, String message) {
this(remote, message, false);
}

@Override
public String getResourceIdentifier() {
return remote;
}

@Override
public String getProgress() {
return message;
}

@Override
public boolean isFinished() {
return isFinished;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,44 +14,4 @@

package com.google.devtools.build.lib.bazel.repository;

import com.google.common.base.Preconditions;
import com.google.devtools.build.lib.vfs.Path;
import com.google.devtools.build.skyframe.SkyValue;

/**
* A file that was downloaded.
*/
public class HttpDownloadValue implements SkyValue {
private final Path path;

public HttpDownloadValue(Path path) {
Preconditions.checkNotNull(path);
this.path = path;
}

public Path getPath() {
return path;
}

@Override
public String toString() {
return path.getPathString();
}

@Override
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof HttpDownloadValue)) {
return false;
}
HttpDownloadValue otherValue = (HttpDownloadValue) other;
return this.path.equals(otherValue.path);
}

@Override
public int hashCode() {
return path.hashCode();
}
}

0 comments on commit 56a9efb

Please sign in to comment.