Skip to content

Commit f0791b0

Browse files
make SearchPanel..ctor private
1 parent 657aeaf commit f0791b0

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

ICSharpCode.AvalonEdit/Search/SearchPanel.cs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,7 @@ void UpdateSearch()
179179
/// <summary>
180180
/// Creates a new SearchPanel.
181181
/// </summary>
182-
[Obsolete("Use the Install method instead")]
183-
public SearchPanel()
182+
SearchPanel()
184183
{
185184
}
186185

@@ -213,7 +212,6 @@ public static SearchPanel Install(TextArea textArea)
213212
{
214213
if (textArea == null)
215214
throw new ArgumentNullException("textArea");
216-
#pragma warning disable 618
217215
SearchPanel panel = new SearchPanel();
218216
panel.AttachInternal(textArea);
219217
panel.handler = new SearchInputHandler(textArea, panel);
@@ -416,11 +414,7 @@ public void Close()
416414
renderer.CurrentResults.Clear();
417415
}
418416

419-
/// <summary>
420-
/// Closes the SearchPanel and removes it.
421-
/// </summary>
422-
[Obsolete("Use the Uninstall method instead!")]
423-
public void CloseAndRemove()
417+
void CloseAndRemove()
424418
{
425419
Close();
426420
textArea.DocumentChanged -= textArea_DocumentChanged;

0 commit comments

Comments
 (0)