From c6662bd928d11cac7ff7c27bc74819c9506c66fd Mon Sep 17 00:00:00 2001 From: stippi Date: Wed, 3 Mar 2010 10:22:50 +0000 Subject: [PATCH] PatternSelector has a default implementation... git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@276 94f232f2-1747-11df-bad5-a5bfde151594 --- src/apps/webpositive/BrowserWindow.cpp | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/apps/webpositive/BrowserWindow.cpp b/src/apps/webpositive/BrowserWindow.cpp index 12008f1362..c29896f34f 100644 --- a/src/apps/webpositive/BrowserWindow.cpp +++ b/src/apps/webpositive/BrowserWindow.cpp @@ -149,18 +149,6 @@ private: }; -class BrowsingHistoryPatternSelector : public BAutoCompleter::PatternSelector { - virtual void SelectPatternBounds(const BString& text, int32 caretPos, - int32* start, int32* length) - { - if (!start || !length) - return; - *start = 0; - *length = text.Length(); - } -}; - - // #pragma mark - BrowserWindow @@ -300,8 +288,7 @@ BrowserWindow::BrowserWindow(BRect frame, const BMessenger& downloadListener, fURLTextControl->MakeFocus(true); fURLAutoCompleter = new TextControlCompleter(fURLTextControl, - new BrowsingHistoryChoiceModel(), - new BrowsingHistoryPatternSelector()); + new BrowsingHistoryChoiceModel()); fFindGroup = layoutItemFor(findGroup); fTabGroup = layoutItemFor(fTabManager->TabGroup());