GitHubDashboard/Dashboard.cs
/// <summary>
/// Only called for descriptions.  Events and languages can grow to whatever size we want.
/// </summary>
Only called for descriptions.  Events and languages can grow to whatever size we want.
Only called for descriptions . Events and languages can grow to whatever size we want .
protected void RemoveAStaleWord(Dictionary<string, TextNode> wordNodeMap)
		{
			DateTime now = DateTime.Now;
			KeyValuePair<string, TextNode> tnode = wordNodeMap.OrderByDescending(w => (now - w.Value.UpdatedOn).TotalMilliseconds).First();
			tnode.Value.Diagram = null;					
			wordNodeMap.Remove(tnode.Key);
			totalDescriptionWords -= tnode.Value.Count;
		}
protected void RemoveAStaleWord ( Dictionary < string , TextNode > wordNodeMap ) { DateTime now = DateTime . Now ; KeyValuePair < string , TextNode > tnode = wordNodeMap . OrderByDescending ( w => ( now - w . Value . UpdatedOn ) . TotalMilliseconds ) . First ( ) ; tnode . Value . Diagram = null ; wordNodeMap . Remove ( tnode . Key ) ; totalDescriptionWords -= tnode . Value . Count ; }
Only called for descriptions.
Only called for descriptions .
// TODO: Might be more efficient to maintain a sorted list to begin with! // Do not call RemoveNode, as this results in a stack overflow because the property setter has this side effect. // THIS REMOVES THE NODE FROM THE DIAGRAM.  
wordNodeMap
Dictionary<string, TextNode>