From 65d13cbf2299ee7a198fe5624c36d07435e00cb9 Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Thu, 26 Apr 2012 15:31:36 -0700 Subject: [PATCH] Hide things that don't need to be visible --- astrid/src/com/todoroo/astrid/dao/ABTestEventDao.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/astrid/src/com/todoroo/astrid/dao/ABTestEventDao.java b/astrid/src/com/todoroo/astrid/dao/ABTestEventDao.java index 9cf8e9781..30e1fa819 100644 --- a/astrid/src/com/todoroo/astrid/dao/ABTestEventDao.java +++ b/astrid/src/com/todoroo/astrid/dao/ABTestEventDao.java @@ -34,13 +34,13 @@ public class ABTestEventDao extends DatabaseDao { createNew(event); } - public boolean createTestEventWithTimeInterval(String testName, int timeInterval) { + private void createTestEventWithTimeInterval(String testName, int timeInterval) { TodorooCursor existing = query(Query.select(ABTestEvent.PROPERTIES) .where(ABTestEvent.TEST_NAME.eq(testName)).orderBy(Order.asc(ABTestEvent.TIME_INTERVAL))); try { if (existing.getCount() == 0) - return false; + return; existing.moveToLast(); ABTestEvent item = new ABTestEvent(existing); @@ -51,7 +51,7 @@ public class ABTestEventDao extends DatabaseDao { ABTestEvent.TIME_INTERVALS, timeInterval); if (lastRecordedTimeIntervalIndex < 0 || currentTimeIntervalIndex < 0) - return false; + return; long now = DateUtilities.now(); for (int i = lastRecordedTimeIntervalIndex + 1; i <= currentTimeIntervalIndex; i++) { @@ -64,7 +64,7 @@ public class ABTestEventDao extends DatabaseDao { } finally { existing.close(); } - return true; + return; } public void createRelativeDateEvents() {