Skip to content

Commit 11eebec

Browse files
authored
Remove useless comments and fix an assert in ReversalIndexEntrySlice (#1142)
1 parent 2efdd8e commit 11eebec

1 file changed

Lines changed: 1 addition & 16 deletions

File tree

‎Src/LexText/Lexicon/ReversalIndexEntrySlice.cs‎

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,6 @@ public override void FinishInit()
113113
Cache = m_propertyTable.GetValue<LcmCache>("cache")
114114
};
115115
Control = ctrl;
116-
//m_menuHandler = InflAffixTemplateMenuHandler.Create(ctrl, ConfigurationNode["deParams"]);
117-
#if !Want
118-
//m_menuHandler.Init(this.Mediator, null);
119-
#else
120-
//m_menuHandler.Init(null, null);
121-
#endif
122-
//ctrl.SetContextMenuHandler(new InflAffixTemplateEventHandler(m_menuHandler.ShowSliceContextMenu));
123116
ctrl.Mediator = Mediator;
124117
m_sda = ctrl.Cache.DomainDataByFlid;
125118
m_sda.AddNotification(this);
@@ -132,9 +125,6 @@ public override void FinishInit()
132125
/// <summary>
133126
/// Populate the writing system options for the slice.
134127
/// </summary>
135-
/// <param name="parameter">The parameter.</param>
136-
/// <param name="display">The display.</param>
137-
/// <returns></returns>
138128
public bool OnDisplayWritingSystemOptionsForSlice(object parameter, ref UIListDisplayProperties display)
139129
{
140130
CheckDisposed();
@@ -148,8 +138,6 @@ public bool OnDisplayWritingSystemOptionsForSlice(object parameter, ref UIListDi
148138
/// <summary>
149139
/// stores the list values in terms of icu locale
150140
/// </summary>
151-
/// <param name="display"></param>
152-
/// <param name="list"></param>
153141
private void AddWritingSystemListWithIcuLocales(UIListDisplayProperties display, IEnumerable<CoreWritingSystemDefinition> list)
154142
{
155143
var active = StringSliceUtils.GetVisibleWSSPropertyValue(PartRef(),
@@ -163,12 +151,9 @@ private void AddWritingSystemListWithIcuLocales(UIListDisplayProperties display,
163151
}
164152
}
165153

166-
/// ------------------------------------------------------------------------------------
167154
/// <summary>
168155
/// Called when property changed.
169156
/// </summary>
170-
/// <param name="name">The name.</param>
171-
/// ------------------------------------------------------------------------------------
172157
public virtual void OnPropertyChanged(string name)
173158
{
174159
CheckDisposed();
@@ -497,7 +482,7 @@ private bool IsEntryInHiddenWs(int hvo)
497482
var entry = Cache.ServiceLocator.GetInstance<IReversalIndexEntryRepository>().GetObject(hvo);
498483
if (entry == null || getVisibleWritingSystems == null)
499484
{
500-
Debug.Assert(entry != null & getVisibleWritingSystems != null, "Method call not valid under current conditions");
485+
Debug.Assert(entry != null && getVisibleWritingSystems != null, "Method call not valid under current conditions");
501486
return false;
502487
}
503488

0 commit comments

Comments
 (0)