diff options
author | 2015-08-28 19:33:06 +0000 | |
---|---|---|
committer | 2015-08-31 19:11:46 +0000 | |
commit | cc010b8d8e7e5d483a359daaebf6ff69415e649d (patch) | |
tree | 7fc81a48012508e2a442c414f1dbec25f07c98e2 /src/main/java/com/google/devtools/build/lib/events/Location.java | |
parent | 73fa2033dc543e69589dd72f3fbeb2e03ebe17fd (diff) |
Roll back "When a Skylark macro creates a native rule, it also..."
--
MOS_MIGRATED_REVID=101798931
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.java | 26 |
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(); - } } |