From 532895f32349a2d31b0f3de5f3f03fce698cafc1 Mon Sep 17 00:00:00 2001 From: Raja Kolli Date: Thu, 16 Nov 2023 03:14:29 +0000 Subject: [PATCH] removes deadcode --- .../config/routing/RoutingDataSource.java | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/jpa/boot-read-replica-postgresql/src/main/java/com/example/demo/readreplica/config/routing/RoutingDataSource.java b/jpa/boot-read-replica-postgresql/src/main/java/com/example/demo/readreplica/config/routing/RoutingDataSource.java index 9e35188d0..577340c9b 100644 --- a/jpa/boot-read-replica-postgresql/src/main/java/com/example/demo/readreplica/config/routing/RoutingDataSource.java +++ b/jpa/boot-read-replica-postgresql/src/main/java/com/example/demo/readreplica/config/routing/RoutingDataSource.java @@ -23,26 +23,4 @@ public static void setReplicaRoute() { protected Object determineCurrentLookupKey() { return routeContext.get(); } - - public boolean isWrapperFor(Class iface) throws java.sql.SQLException { - // TODO Auto-generated method stub - return iface != null && iface.isAssignableFrom(this.getClass()); - } - - public T unwrap(Class iface) throws java.sql.SQLException { - // TODO Auto-generated method stub - try { - if (iface != null && iface.isAssignableFrom(this.getClass())) { - return (T) this; - } - throw new java.sql.SQLException("Auto-generated unwrap failed; Revisit implementation"); - } catch (Exception e) { - throw new java.sql.SQLException(e); - } - } - - public java.util.logging.Logger getParentLogger() { - // TODO Auto-generated method stub - return null; - } }