Skip to content

Commit

Permalink
Clean up calendar dao debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
stouffers committed Jan 27, 2017
1 parent a13da67 commit 9d7b3b6
Showing 1 changed file with 1 addition and 9 deletions.
Expand Up @@ -199,19 +199,11 @@ private void updateCalSupplementals(Calendar calendar, SobiFragment fragment, Im
for (Version supVersion : updateSupVersions) {
CalendarSupplemental sup = calendar.getSupplemental(supVersion);
ImmutableParams supParams = ImmutableParams.from(getCalSupplementalParams(sup, fragment));
try {
jdbcNamed.update(SqlCalendarQuery.INSERT_CALENDAR_SUP.getSql(schema()), supParams);
} catch (Exception e) {
throw e;
}
jdbcNamed.update(SqlCalendarQuery.INSERT_CALENDAR_SUP.getSql(schema()), supParams);
// Insert the calendar entries
for (CalendarSupplementalEntry entry : sup.getSectionEntries().values()) {
ImmutableParams entryParams = ImmutableParams.from(getCalSupEntryParams(sup, entry, fragment));
try {
jdbcNamed.update(SqlCalendarQuery.INSERT_CALENDAR_SUP_ENTRY.getSql(schema()), entryParams);
} catch (Exception e) {
throw e;
}
}
}
}
Expand Down

0 comments on commit 9d7b3b6

Please sign in to comment.