From c0f032de776685d62286e8a86496bc03fb9922c9 Mon Sep 17 00:00:00 2001 From: Andrew den Exter Date: Fri, 9 Mar 2012 15:22:44 +1000 Subject: [PATCH] Remove unused init function. Change-Id: Id66e177a544fd8e019bae86fff6bd04bd0497d7c Reviewed-by: Yann Bodson --- src/quick/items/qquicktextinput.cpp | 13 ------------- src/quick/items/qquicktextinput_p_p.h | 1 - 2 files changed, 0 insertions(+), 14 deletions(-) diff --git a/src/quick/items/qquicktextinput.cpp b/src/quick/items/qquicktextinput.cpp index 1a93345..a06c174 100644 --- a/src/quick/items/qquicktextinput.cpp +++ b/src/quick/items/qquicktextinput.cpp @@ -2930,19 +2930,6 @@ void QQuickTextInputPrivate::setSelection(int start, int length) /*! \internal - Initializes the line control with a starting text value of \a txt. -*/ -void QQuickTextInputPrivate::init(const QString &txt) -{ - m_text = txt; - - updateDisplayText(); - m_cursor = m_text.length(); -} - -/*! - \internal - Sets the password echo editing to \a editing. If password echo editing is true, then the text of the password is displayed even if the echo mode is set to QLineEdit::PasswordEchoOnEdit. Password echoing editing diff --git a/src/quick/items/qquicktextinput_p_p.h b/src/quick/items/qquicktextinput_p_p.h index 9a59b44..bb00600 100644 --- a/src/quick/items/qquicktextinput_p_p.h +++ b/src/quick/items/qquicktextinput_p_p.h @@ -405,7 +405,6 @@ public: void updateLayout(); private: - void init(const QString &txt); void removeSelectedText(); void internalSetText(const QString &txt, int pos = -1, bool edited = true); void updateDisplayText(bool forceUpdate = false); -- 1.7.2.5