Remove unused init function.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Fri, 9 Mar 2012 05:22:44 +0000 (15:22 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 13 Mar 2012 13:00:45 +0000 (14:00 +0100)
Change-Id: Id66e177a544fd8e019bae86fff6bd04bd0497d7c
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
src/quick/items/qquicktextinput.cpp
src/quick/items/qquicktextinput_p_p.h

index 1a93345..a06c174 100644 (file)
@@ -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
index 9a59b44..bb00600 100644 (file)
@@ -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);