Skip to content

Commit 131c36c

Browse files
committed
cleanup
Signed-off-by: illyrius666 <28700752+illyrius666@users.noreply.github.com>
1 parent b1050e3 commit 131c36c

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

IllyriaKingdoms/src/managers/DatabaseManager.kt

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,4 @@ internal object DatabaseManager {
3939
IllyriaKingdoms.instance.logger.info("Database connection closed")
4040
}
4141
}
42-
43-
/**
44-
* Executes a database transaction.
45-
* Automatically handles transaction scope and error handling.
46-
*
47-
* @param block The transaction block to execute
48-
* @return The result of the transaction block
49-
*/
50-
fun <T> transaction(block: () -> T): T =
51-
org.jetbrains.exposed.sql.transactions
52-
.transaction(database) { block() }
5342
}

0 commit comments

Comments
 (0)