Skip to content

Commit

Permalink
Remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
Gautam Korlam committed Jan 26, 2017
1 parent 525df7a commit e74f808
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions buildSrc/src/main/java/com/uber/okbuck/core/util/FileUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.Collection;
import java.util.Collections;
Expand Down Expand Up @@ -66,15 +65,4 @@ public static String getIfAvailable(Project project, File file) {
Set<String> available = getIfAvailable(project, Collections.singleton(file));
return available.isEmpty() ? null : available.iterator().next();
}

public static void createLink(File target, File link) {
Path targetPath = target.toPath().toAbsolutePath();
Path linkPath = link.toPath().toAbsolutePath();
try {
Files.deleteIfExists(linkPath);
Files.createSymbolicLink(linkPath, targetPath);
} catch (IOException e) {
throw new RuntimeException(e);
}
}
}

0 comments on commit e74f808

Please sign in to comment.