From 11a212a635a0a294198fe9102138fb1431b9490a Mon Sep 17 00:00:00 2001 From: "Chris.Watts90@outlook.com" Date: Fri, 25 May 2018 12:28:41 +0100 Subject: [PATCH] remove commented out code #89 --- .../SQLiteRepository/SQLiteRepository.cs | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/DataCenter_Windows/WindowsDataCenter/SQLiteRepository/SQLiteRepository.cs b/DataCenter_Windows/WindowsDataCenter/SQLiteRepository/SQLiteRepository.cs index f5400f4..32968fe 100644 --- a/DataCenter_Windows/WindowsDataCenter/SQLiteRepository/SQLiteRepository.cs +++ b/DataCenter_Windows/WindowsDataCenter/SQLiteRepository/SQLiteRepository.cs @@ -599,23 +599,6 @@ namespace SQLiteRepository }; #region update in/out directions for manual logs. 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 //and now insert the new log. _connection.Insert(dbLog);