app/repository/UndoStackRepository.java
private void clearOutdatedRecords() {
        String dateString = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new DateTime().minusDays(1).toDate());
        List<UndoStack> outdatedCommands = ebeanServer.find(UndoStack.class)
                .where()
                .lt("time_created", dateString)
                .findList();

        for (UndoStack i : outdatedCommands) {
            ebeanServer.delete(i);
            processStackItem(i);
        }
    }
/**
     * Checks for any commands in the stack that are over a day old
     * Any commands that are found are executed and removed from the stack
     *
     */
Checks for any commands in the stack that are over a day old
Any commands that are found are executed and removed from the stack
Checks for any commands in the stack that are over a day old Any commands that are found are executed and removed from the stack
private void clearOutdatedRecords() {
        String dateString = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new DateTime().minusDays(1).toDate());
        List<UndoStack> outdatedCommands = ebeanServer.find(UndoStack.class)
                .where()
                .lt("time_created", dateString)
                .findList();
        for (UndoStack i : outdatedCommands) {
            ebeanServer.delete(i);
            processStackItem(i);
        }
    }
private void clearOutdatedRecords ( ) { String dateString = new SimpleDateFormat ( "yyyy-MM-dd HH:mm:ss" ) . format ( new DateTime ( ) . minusDays ( 1 ) . toDate ( ) ) ; List < UndoStack > outdatedCommands = ebeanServer . find ( UndoStack . class ) . where ( ) . lt ( "time_created" , dateString ) . findList ( ) ; for ( UndoStack i : outdatedCommands ) { ebeanServer . delete ( i ) ; processStackItem ( i ) ; } }
Checks for any commands in the stack that are over a day old
 Any commands that are found are executed and removed from the stack
Checks for any commands in the stack that are over a day old Any commands that are found are executed and removed from the stack