diff --git a/src/org/labkey/test/util/APIUserHelper.java b/src/org/labkey/test/util/APIUserHelper.java index 311b953b6c..ec47d033e8 100644 --- a/src/org/labkey/test/util/APIUserHelper.java +++ b/src/org/labkey/test/util/APIUserHelper.java @@ -31,7 +31,6 @@ import org.labkey.remoteapi.SimplePostCommand; import org.labkey.remoteapi.security.CreateUserCommand; import org.labkey.remoteapi.security.CreateUserResponse; -import org.labkey.remoteapi.security.DeleteUserCommand; import org.labkey.remoteapi.security.GetUsersCommand; import org.labkey.remoteapi.security.GetUsersResponse; import org.labkey.remoteapi.security.GetUsersResponse.UserInfo; @@ -58,6 +57,7 @@ public class APIUserHelper extends AbstractUserHelper { private final Supplier connectionSupplier; + public APIUserHelper(Supplier connectionSupplier) { super(null); @@ -223,19 +223,6 @@ protected void _deleteUser(String userEmail) deleteUsers(false, userEmail); } - private void deleteUser(@NotNull Integer userId) - { - DeleteUserCommand command = new DeleteUserCommand(userId); - try - { - command.execute(connectionSupplier.get(), "/"); - } - catch (IOException|CommandException e) - { - throw new RuntimeException(e); - } - } - @Override protected void _deleteUsers(boolean failIfNotFound, String... userEmails) {