aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-db/src/main/java/org
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2017-01-23 23:18:36 +0100
committerSimon Brandhof <simon.brandhof@sonarsource.com>2017-01-24 09:39:42 +0100
commitd64a58b9177703e574f4214a7354b75407f61df8 (patch)
tree73e0031134023b224617896e130927993a18f1fc /sonar-db/src/main/java/org
parent23b6f858b1813d4d399ba9a1808fb880f9b96ce8 (diff)
downloadsonarqube-d64a58b9177703e574f4214a7354b75407f61df8.tar.gz
sonarqube-d64a58b9177703e574f4214a7354b75407f61df8.zip
Drop unused FileSourceDao#updateDateWhenUpdatedDateIsZero()
Diffstat (limited to 'sonar-db/src/main/java/org')
-rw-r--r--sonar-db/src/main/java/org/sonar/db/source/FileSourceDao.java6
-rw-r--r--sonar-db/src/main/java/org/sonar/db/source/FileSourceMapper.java2
2 files changed, 1 insertions, 7 deletions
diff --git a/sonar-db/src/main/java/org/sonar/db/source/FileSourceDao.java b/sonar-db/src/main/java/org/sonar/db/source/FileSourceDao.java
index a5df02d0e73..89a9afff183 100644
--- a/sonar-db/src/main/java/org/sonar/db/source/FileSourceDao.java
+++ b/sonar-db/src/main/java/org/sonar/db/source/FileSourceDao.java
@@ -19,7 +19,6 @@
*/
package org.sonar.db.source;
-import com.google.common.base.Function;
import com.google.common.base.Splitter;
import java.io.Reader;
import java.sql.Connection;
@@ -28,6 +27,7 @@ import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Collections;
import java.util.List;
+import java.util.function.Function;
import javax.annotation.CheckForNull;
import org.apache.commons.dbutils.DbUtils;
import org.apache.commons.io.IOUtils;
@@ -137,10 +137,6 @@ public class FileSourceDao implements Dao {
mapper(session).update(dto);
}
- public void updateDateWhenUpdatedDateIsZero(DbSession session, String projectUuid, long updateDate) {
- mapper(session).updateDateWhenUpdatedDateIsZero(projectUuid, updateDate);
- }
-
private static FileSourceMapper mapper(DbSession session) {
return session.getMapper(FileSourceMapper.class);
}
diff --git a/sonar-db/src/main/java/org/sonar/db/source/FileSourceMapper.java b/sonar-db/src/main/java/org/sonar/db/source/FileSourceMapper.java
index 31d24946b07..7e6d635d121 100644
--- a/sonar-db/src/main/java/org/sonar/db/source/FileSourceMapper.java
+++ b/sonar-db/src/main/java/org/sonar/db/source/FileSourceMapper.java
@@ -33,6 +33,4 @@ public interface FileSourceMapper {
void insert(FileSourceDto dto);
void update(FileSourceDto dto);
-
- void updateDateWhenUpdatedDateIsZero(@Param("projectUuid") String projectUuid, @Param("date") Long updateDate);
}