Remove unused method

This commit is contained in:
김선우
2025-01-19 21:50:18 +09:00
parent 24ead40f88
commit f8cc08e5ad

View File

@@ -1,13 +1,13 @@
package org.github.tursodatabase.utils;
import static org.github.tursodatabase.utils.ByteArrayUtils.utf8ByteBufferToString;
import java.sql.SQLException;
import org.github.tursodatabase.LimboErrorCode;
import org.github.tursodatabase.annotations.Nullable;
import org.github.tursodatabase.exceptions.LimboException;
import java.sql.SQLException;
import static org.github.tursodatabase.utils.ByteArrayUtils.utf8ByteBufferToString;
public class LimboExceptionUtils {
/**
* Throws formatted SQLException with error code and message.
@@ -38,18 +38,4 @@ public class LimboExceptionUtils {
return new LimboException(msg, code);
}
/**
* Ensures that the provided object is not null.
*
* @param object the object to check for nullity
* @param message the message to include in the exception if the object is null
*
* @throws IllegalArgumentException if the provided object is null
*/
public static void requireNonNull(Object object, String message) {
if (object == null) {
throw new IllegalArgumentException(message);
}
}
}