From f8cc08e5ad8134c847f04fb20d9bff0f70d7e560 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=84=A0=EC=9A=B0?= Date: Sun, 19 Jan 2025 21:50:18 +0900 Subject: [PATCH] Remove unused method --- .../utils/LimboExceptionUtils.java | 22 ++++--------------- 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/bindings/java/src/main/java/org/github/tursodatabase/utils/LimboExceptionUtils.java b/bindings/java/src/main/java/org/github/tursodatabase/utils/LimboExceptionUtils.java index 08e8f5b5e..1525fafc8 100644 --- a/bindings/java/src/main/java/org/github/tursodatabase/utils/LimboExceptionUtils.java +++ b/bindings/java/src/main/java/org/github/tursodatabase/utils/LimboExceptionUtils.java @@ -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); - } - } }