Skip to content

Commit

Permalink
Remove obsolete DtFileDataSeenInThisSession
Browse files Browse the repository at this point in the history
  • Loading branch information
nemethviktor committed Jul 29, 2023
1 parent 226881d commit bf315b1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 18 deletions.
4 changes: 1 addition & 3 deletions FrmMainApp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ public partial class FrmMainApp : Form
internal static Dictionary<ElementAttribute, Tuple<string, bool>> CopyPoolDict = new();

// this is for checking if files need to be re-parsed.
internal static DataTable DtFileDataSeenInThisSession;
internal static DataTable DtToponomySessionData;

// these are for storing the inital values of TakenDate and CreateDate. Needed for TimeShift.
Expand Down Expand Up @@ -1528,10 +1527,9 @@ private void lvw_FileList_LoadOrUpdate()
#endregion

// Clear Tables that keep track of the current folder...
Logger.Trace(message: "Clear OriginalTakenDateDict, OriginalCreateDateDict and DtFileDataSeenInThisSession");
Logger.Trace(message: "Clear OriginalTakenDateDict and OriginalCreateDateDict");
OriginalTakenDateDict.Clear();
OriginalCreateDateDict.Clear();
DtFileDataSeenInThisSession.Clear();

tbx_FolderName.Enabled = !Program.collectionModeEnabled;

Expand Down
7 changes: 0 additions & 7 deletions Helpers/HelperDataOtherDataRelated.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@ public static void GenericCreateDataTables()
FrmMainApp.DtLanguageLabels.Columns.Add(columnName: "objectName");
FrmMainApp.DtLanguageLabels.Columns.Add(columnName: "objectText");

// DtFileDataSeenInThisSession
FrmMainApp.DtFileDataSeenInThisSession = new DataTable();
FrmMainApp.DtFileDataSeenInThisSession.Clear();
FrmMainApp.DtFileDataSeenInThisSession.Columns.Add(columnName: "fileNameWithPath");
FrmMainApp.DtFileDataSeenInThisSession.Columns.Add(columnName: "settingId");
FrmMainApp.DtFileDataSeenInThisSession.Columns.Add(columnName: "settingValue");

// DtToponomySessionData;
FrmMainApp.DtToponomySessionData = new DataTable();
FrmMainApp.DtToponomySessionData.Clear();
Expand Down
8 changes: 0 additions & 8 deletions Model/DirectoryElement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -846,14 +846,6 @@ private bool ParseAttribute(ElementAttribute attribute,
break;
}
// Not adding the xmp here because the current code logic would pull a "unified" data point.

// Add to list of file attributes seen
// TODO: Understand where this is used and check how the model can support this
DataRow dr = FrmMainApp.DtFileDataSeenInThisSession.NewRow();
dr[columnName: "fileNameWithPath"] = FileNameWithPath;
dr[columnName: "settingId"] = GetAttributeName(attribute: attribute);
dr[columnName: "settingValue"] = parseResult;
FrmMainApp.DtFileDataSeenInThisSession.Rows.Add(row: dr);
}
}
catch
Expand Down

0 comments on commit bf315b1

Please sign in to comment.