aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2014-01-19 09:38:33 (GMT)
committerChristoph Cullmann <cullmann@kde.org>2014-01-19 09:38:33 (GMT)
commit1deece7853c5542f70482e6a9487fca001aa5cd5 (patch)
tree66338f6db5dbac57939469eb9ece5e0117965c5a
parent6a5b3cf0038c688c66caf51908987d9f85cff228 (diff)
remove unused API
-rw-r--r--src/include/ktexteditor/document.h9
-rw-r--r--src/src/document.cpp13
2 files changed, 1 insertions, 21 deletions
diff --git a/src/include/ktexteditor/document.h b/src/include/ktexteditor/document.h
index fc664ba..100dc21 100644
--- a/src/include/ktexteditor/document.h
+++ b/src/include/ktexteditor/document.h
@@ -837,15 +837,6 @@ private:
public:
/**
- * by default dialogs should be displayed.
- * In any case (dialog shown or suppressed)
- * openingErrors and openingErrorMessage should have meaningfull values
- *
- * \param suppress true/false value if dialogs should be displayed
- */
- void setSuppressOpeningErrorDialogs(bool suppress);
- bool suppressOpeningErrorDialogs() const;
- /**
* True, eg if the file for opening could not be read
* This doesn't have to handle the KPart job cancled cases
*/
diff --git a/src/src/document.cpp b/src/src/document.cpp
index d773c41..9e08cca 100644
--- a/src/src/document.cpp
+++ b/src/src/document.cpp
@@ -27,9 +27,8 @@ class KTextEditor::DocumentPrivate
{
public:
DocumentPrivate()
- : openingError(false), suppressOpeningErrorDialogs(false) { }
+ : openingError(false) { }
bool openingError;
- bool suppressOpeningErrorDialogs;
QString openingErrorMessage;
};
@@ -44,16 +43,6 @@ Document::~Document()
delete d;
}
-void Document::setSuppressOpeningErrorDialogs(bool suppress)
-{
- d->suppressOpeningErrorDialogs = suppress;
-}
-
-bool Document::suppressOpeningErrorDialogs() const
-{
- return d->suppressOpeningErrorDialogs;
-}
-
bool Document::openingError() const
{
return d->openingError;