From 9c19368ce5552b420e7026f231cacdf76d30fdfd Mon Sep 17 00:00:00 2001 From: Kurt Hindenburg Date: Wed, 28 Aug 2019 11:06:22 -0400 Subject: [PATCH] Remove leading/trailingWhitespace() - they were never used --- src/TerminalCharacterDecoder.cpp | 8 -------- src/TerminalCharacterDecoder.h | 10 ---------- 2 files changed, 18 deletions(-) diff --git a/src/TerminalCharacterDecoder.cpp b/src/TerminalCharacterDecoder.cpp index 2278c689..d3ad814a 100644 --- a/src/TerminalCharacterDecoder.cpp +++ b/src/TerminalCharacterDecoder.cpp @@ -44,18 +44,10 @@ void PlainTextDecoder::setLeadingWhitespace(bool enable) { _includeLeadingWhitespace = enable; } -bool PlainTextDecoder::leadingWhitespace() const -{ - return _includeLeadingWhitespace; -} void PlainTextDecoder::setTrailingWhitespace(bool enable) { _includeTrailingWhitespace = enable; } -bool PlainTextDecoder::trailingWhitespace() const -{ - return _includeTrailingWhitespace; -} void PlainTextDecoder::begin(QTextStream* output) { _output = output; diff --git a/src/TerminalCharacterDecoder.h b/src/TerminalCharacterDecoder.h index 77eee7d4..394067e7 100644 --- a/src/TerminalCharacterDecoder.h +++ b/src/TerminalCharacterDecoder.h @@ -81,22 +81,12 @@ public: * Defaults to true. */ void setLeadingWhitespace(bool enable); - /** - * Returns whether leading whitespace at the end of lines is included - * in the output. - */ - bool leadingWhitespace() const; /** * Set whether trailing whitespace at the end of lines should be included * in the output. * Defaults to true. */ void setTrailingWhitespace(bool enable); - /** - * Returns whether trailing whitespace at the end of lines is included - * in the output. - */ - bool trailingWhitespace() const; /** * Returns of character positions in the output stream * at which new lines where added. Returns an empty if setTrackLinePositions() is false or if