Remove deprecated methods from ProfileLocation

These methods are no longer used.
This commit is contained in:
Rob Bygrave
2023-06-01 20:00:50 +12:00
parent f52a18989c
commit e5f7a28d80
2 changed files with 1 additions and 18 deletions
@@ -30,23 +30,6 @@ public interface ProfileLocation {
return XServiceProvider.profileLocationFactory().create(label);
}
/**
* Deprecated in favor of {@link #create(String)}.
*/
@Deprecated
static ProfileLocation create(int lineNumber, String label) {
return create(label);
}
/**
* Deprecated for removal - not used.
* Create and return a new ProfileLocation with a given location.
*/
@Deprecated
static ProfileLocation createAt(String location) {
return XServiceProvider.profileLocationFactory().createAt(location);
}
/**
* Obtain the description returning true if this is the initial call.
*/
@@ -7,7 +7,7 @@ import static org.assertj.core.api.Assertions.assertThat;
class ProfileLocationTest {
private static final ProfileLocation loc = ProfileLocation.create(12, "foo");
private static final ProfileLocation loc = ProfileLocation.create("foo");
private static final ProfileLocation locB = ProfileLocation.create();
private static final ProfileLocation loc2 = ProfileLocation.create();
private static final ProfileLocation locWithLine = ProfileLocation.createWithLine();