remove commented out code

#89
This commit is contained in:
Chris.Watts90@outlook.com 2018-05-25 12:28:41 +01:00
parent a2925872d0
commit 11a212a635

View File

@ -599,23 +599,6 @@ namespace SQLiteRepository
}; };
#region update in/out directions for manual logs. #region update in/out directions for manual logs.
UpdateExistingLogDirections(log); UpdateExistingLogDirections(log);
//var weekLogs = GetTimeLogList(log.UserId, calendarWeek, year);
////Get the same logs of the day that the log has been entered for
//var todaysLogs = weekLogs.FirstOrDefault(x => x.Day == log.EventTime.DayOfWeek);
//if (todaysLogs!= null)
//{
// //Get the days logs that are after the manually created date
// var logs = todaysLogs.Logs.Where(x => x.EventTime.CompareTo(log.EventTime) >= 0).OrderBy(x => x.EventTime).ToList();
// //Update each log with the inverse progressively
// var currentlogDirection = log.Direction;
// for (var i = 0; i < logs.Count; i++)
// {
// logs[i].Direction = InvertLogDirection(currentlogDirection);
// UpdateLog(logs[i]);
// currentlogDirection = logs[i].Direction;
// }
//}
#endregion #endregion
//and now insert the new log. //and now insert the new log.
_connection.Insert(dbLog); _connection.Insert(dbLog);