aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/events/Location.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/events/Location.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/events/Location.java26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/events/Location.java b/src/main/java/com/google/devtools/build/lib/events/Location.java
index 74b04a913a..608d307c68 100644
--- a/src/main/java/com/google/devtools/build/lib/events/Location.java
+++ b/src/main/java/com/google/devtools/build/lib/events/Location.java
@@ -291,30 +291,4 @@ public abstract class Location implements Serializable {
return null;
}
};
-
- /**
- * Returns the location in the format "filename:line".
- *
- * <p>If such a location is not defined, this method returns an empty string.
- */
- public static String printPathAndLine(Location location) {
- return (location == null) ? "" : location.printPathAndLine();
- }
-
- /**
- * Returns this location in the format "filename:line".
- */
- public String printPathAndLine() {
- StringBuilder builder = new StringBuilder();
- PathFragment path = getPath();
- if (path != null) {
- builder.append(path.getPathString());
- }
-
- LineAndColumn position = getStartLineAndColumn();
- if (position != null) {
- builder.append(":").append(position.getLine());
- }
- return builder.toString();
- }
}