@@ -7,7 +7,6 @@ namespace Rubberduck.Settings
77{
88 public interface IToDoMarker
99 {
10- TodoPriority Priority { get ; set ; }
1110 string Text { get ; set ; }
1211 }
1312
@@ -17,37 +16,16 @@ public class ToDoMarker : IToDoMarker
1716 //either the code can be properly case, or the XML can be, but the xml attributes must here *exactly* match the xml
1817 [ XmlAttribute ]
1918 public string Text { get ; set ; }
20-
21- [ XmlAttribute ]
22- public TodoPriority Priority { get ; set ; }
23-
24- [ XmlIgnore ]
25- public string PriorityLabel
26- {
27- get { return RubberduckUI . ResourceManager . GetString ( "ToDoPriority_" + Priority , RubberduckUI . Culture ) ; }
28- set
29- {
30- foreach ( var priority in Enum . GetValues ( typeof ( TodoPriority ) ) )
31- {
32- if ( value == RubberduckUI . ResourceManager . GetString ( "ToDoPriority_" + priority , RubberduckUI . Culture ) )
33- {
34- Priority = ( TodoPriority ) priority ;
35- return ;
36- }
37- }
38- }
39- }
40-
19+
4120 /// <summary> Default constructor is required for serialization. DO NOT USE. </summary>
4221 public ToDoMarker ( )
4322 {
4423 // default constructor required for serialization
4524 }
4625
47- public ToDoMarker ( string text , TodoPriority priority )
26+ public ToDoMarker ( string text )
4827 {
4928 Text = text ;
50- Priority = priority ;
5129 }
5230
5331 /// <summary> Convert this object into a string representation. Over-riden for easy databinding.</summary>
@@ -63,9 +41,7 @@ public override bool Equals(object obj)
6341
6442 if ( other == null ) { return false ; }
6543
66- // no need to check PriorityLabel as it soley relies on Priority - if one is wrong, the other has to be too
67- return Text == other . Text &&
68- Priority == other . Priority ;
44+ return Text == other . Text ;
6945 }
7046
7147 public override int GetHashCode ( )
0 commit comments