Permalink
Browse files

removed unused doInTransaction method

  • Loading branch information...
1 parent 08041fc commit 0008b960a635d203ebf7e08c96a23c7cb7fb13ad Burt Beckwith committed Sep 13, 2012
@@ -70,26 +70,6 @@ class GrailsTestTransactionInterceptor {
}
}
- /**
- * Calls init() before and destroy() after invoking {@code body}.
- *
- * Note: it is the callers responsibility to verify that {@code body} should be run in a transaction.
- */
- void doInTransaction(Closure body) {
- if (transactionManager) {
- init()
- try {
- body()
- }
- finally {
- destroy()
- }
- }
- else {
- body()
- }
- }
-
/**
* A test is non transactional if it defines an instance or static property name 'transactional' with
* a value of {@code false}.

0 comments on commit 0008b96

Please sign in to comment.