aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core/src
diff options
context:
space:
mode:
authorJean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com>2013-05-28 14:29:52 +0200
committerJean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com>2013-05-28 14:30:04 +0200
commit782be50be1a71d8c859d52e8d85f1e1e81694d94 (patch)
tree7010d28598cd70bfe2ed0f95c856e3f22301d6b5 /sonar-core/src
parent8ba3c540450b625fd5d0ae19bfa768b2c4124621 (diff)
downloadsonarqube-782be50be1a71d8c859d52e8d85f1e1e81694d94.tar.gz
sonarqube-782be50be1a71d8c859d52e8d85f1e1e81694d94.zip
DEVACT-103 Removed unused method in AuthorDao
Diffstat (limited to 'sonar-core/src')
-rw-r--r--sonar-core/src/main/java/org/sonar/core/user/AuthorDao.java22
1 files changed, 0 insertions, 22 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/user/AuthorDao.java b/sonar-core/src/main/java/org/sonar/core/user/AuthorDao.java
index e7061bd015e..1d7e05845a5 100644
--- a/sonar-core/src/main/java/org/sonar/core/user/AuthorDao.java
+++ b/sonar-core/src/main/java/org/sonar/core/user/AuthorDao.java
@@ -61,28 +61,6 @@ public class AuthorDao implements BatchComponent, ServerComponent {
}
}
- public void insert(AuthorDto authorDto) {
- SqlSession session = mybatis.openSession();
- AuthorMapper mapper = session.getMapper(AuthorMapper.class);
- try {
- mapper.insert(authorDto);
- session.commit();
- } catch (RuntimeException e) {
- // break the unique index on LOGIN ?
- session.rollback();
- AuthorDto persistedAuthor = mapper.selectByLogin(authorDto.getLogin());
- if (persistedAuthor != null) {
- authorDto.setId(persistedAuthor.getId());
- authorDto.setPersonId(persistedAuthor.getPersonId());
- } else {
- throw e;
- }
-
- } finally {
- MyBatis.closeQuietly(session);
- }
- }
-
public void insertAuthor(String login, long personId) {
SqlSession session = mybatis.openSession();
try {