[tomboy/xdg-migration: 1/4] Clean up NoteRecentChanges.FilterByTag.



commit 674649b5ec215c47202e2a144de65ead0d017872
Author: Sandy Armstrong <sanfordarmstrong gmail com>
Date:   Sat May 2 19:21:00 2009 -0700

    Clean up NoteRecentChanges.FilterByTag.

 Tomboy/RecentChanges.cs |   27 +++++++++++++--------------
 1 files changed, 13 insertions(+), 14 deletions(-)
---
diff --git a/Tomboy/RecentChanges.cs b/Tomboy/RecentChanges.cs
index 93bc7af..a5ad8dc 100644
--- a/Tomboy/RecentChanges.cs
+++ b/Tomboy/RecentChanges.cs
@@ -599,20 +599,19 @@ namespace Tomboy
                 // based on the current selection of tags.  If no tags are selected,
                 // all notes should be allowed.
                 // </summary>
-				  bool FilterByTag (Note note)
-				  {
-				   if (selected_tags.Count == 0)
-				    return true;
-
-				//   // FIXME: Ugh!  NOT an O(1) operation.  Is there a better way?
-				   List<Tag> tags = note.Tags;
-				   foreach (Tag tag in tags) {
-				    if (selected_tags.ContainsKey (tag))
-				     return true;
-				   }
-
-				   return false;
-				  }
+		bool FilterByTag (Note note)
+		{
+			if (selected_tags.Count == 0)
+				return true;
+
+			// FIXME: Ugh!  NOT an O(1) operation.  Is there a better way?
+			foreach (Tag tag in note.Tags) {
+				if (selected_tags.ContainsKey (tag))
+					return true;
+			}
+
+			return false;
+		}
 
                 // <summary>
                 // Return true if the specified note should be shown in the list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]