From 355f308c13dc46747c5f8c4a232f74ccdb44ef58 Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 12 Sep 2022 09:16:16 +1000 Subject: Remove NotifyLexerChanged notification from DocWatcher. This is a private interface but could be used by independent platform layers and was exposed by ScintillaDocument in the Qt implementation of ScintillaEdit. --- src/Document.cxx | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/Document.cxx') diff --git a/src/Document.cxx b/src/Document.cxx index 5e2613bdf..ada7f4436 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -58,7 +58,6 @@ LexInterface::~LexInterface() noexcept = default; void LexInterface::SetInstance(ILexer5 *instance_) { instance.reset(instance_); - pdoc->LexerChanged(); } void LexInterface::Colourise(Sci::Position start, Sci::Position end) { @@ -2432,13 +2431,6 @@ void Document::StyleToAdjustingLineDuration(Sci::Position pos) { durationStyleOneByte.AddSample(pos - stylingStart, epStyling.Duration()); } -void Document::LexerChanged() { - // Tell the watchers the lexer has changed. - for (const WatcherWithUserData &watcher : watchers) { - watcher.watcher->NotifyLexerChanged(this, watcher.userData); - } -} - LexInterface *Document::GetLexInterface() const noexcept { return pli.get(); } -- cgit v1.2.3