Skip to content

Commit 4c0de98

Browse files
committed
Cypher: Remove unused addDays/addMonths methods
1 parent 5dd9d4f commit 4c0de98

File tree

2 files changed

+0
-25
lines changed

2 files changed

+0
-25
lines changed

cypher/src/main/java/org/ldbcouncil/snb/impls/workloads/cypher/CypherDb.java

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -28,25 +28,8 @@
2828
public class CypherDb extends BaseDb<CypherQueryStore>
2929
{
3030

31-
Driver driver;
3231
CypherQueryStore queryStore;
3332

34-
static protected Date addDays( Date startDate, int days )
35-
{
36-
final Calendar cal = Calendar.getInstance();
37-
cal.setTime( startDate );
38-
cal.add( Calendar.DATE, days );
39-
return cal.getTime();
40-
}
41-
42-
static protected Date addMonths( Date startDate, int months )
43-
{
44-
final Calendar cal = Calendar.getInstance();
45-
cal.setTime( startDate );
46-
cal.add( Calendar.MONTH, months );
47-
return cal.getTime();
48-
}
49-
5033
@Override
5134
protected void onInit( Map<String, String> properties, LoggingService loggingService ) throws DbException
5235
{

cypher/src/main/java/org/ldbcouncil/snb/impls/workloads/cypher/CypherQueryStore.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,6 @@ static protected Date addDays( Date startDate, int days )
3232
return cal.getTime();
3333
}
3434

35-
static protected Date addMonths( Date startDate, int months )
36-
{
37-
final Calendar cal = Calendar.getInstance();
38-
cal.setTime( startDate );
39-
cal.add( Calendar.MONTH, months );
40-
return cal.getTime();
41-
}
42-
4335
/**
4436
* The maps are overriden here to return maps with Java types
4537
* instead of strings. This speeds up querying the Cypher instance

0 commit comments

Comments
 (0)