From 15e8dd494c2fcfca9df750dc9e31b93b905b9ede Mon Sep 17 00:00:00 2001 From: Graeme Geldenhuys Date: Sun, 9 Aug 2015 19:58:14 +0100 Subject: richview: earmarked TRichTextView.CopyTextToBuffer() to be removed --- docview/components/richtext/RichTextView.pas | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docview/components/richtext/RichTextView.pas b/docview/components/richtext/RichTextView.pas index e890ca54..bc967d59 100644 --- a/docview/components/richtext/RichTextView.pas +++ b/docview/components/richtext/RichTextView.pas @@ -2414,9 +2414,13 @@ begin // BufferLength ); end; +// TODO: This doesn't seem to be used anywhere, so we could probably delete it. function TRichTextView.CopyTextToBuffer( Buffer: PChar; BufferLength: longint ): longint; begin + Result := -1; + // TODO: we do this to trap code using this, so we can fix it accordingly. + raise Exception.Create('TRichTextView.CopyTextToBuffer was called, but it is not implemented yet.'); //Result := CopyPlainTextToBuffer( FText, // FText + strlen( FText ), // Buffer, -- cgit v1.2.3-70-g09d2