Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Remove unused KisAssertException

Dmitry Kazakovfb427d95254f
diff --git a/libs/global/kis_assert.cpp b/libs/global/kis_assert.cpp
index 53073fa5d2..0497700480 100644
--- a/libs/global/kis_assert.cpp
+++ b/libs/global/kis_assert.cpp
@@ -14,7 +14,6 @@
#include <QApplication>
#include <klocalizedstring.h>
-#include <kis_assert_exception.h>
#include <KisUsageLogger.h>
#include <string>
#include "config-safe-asserts.h"
diff --git a/libs/global/kis_assert_exception.h b/libs/global/kis_assert_exception.h
deleted file mode 100644
index 3ce4e151ce..0000000000
--- a/libs/global/kis_assert_exception.h
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * SPDX-FileCopyrightText: 2013 Dmitry Kazakov <[email protected]>
- *
- * SPDX-License-Identifier: GPL-2.0-or-later
- */
-
-#ifndef __KIS_ASSERT_EXCEPTION_H
-#define __KIS_ASSERT_EXCEPTION_H
-
-#include <stdexcept>
-#include <QException>
-
-class KisAssertException : public std::runtime_error, public QException
-{
-public:
- KisAssertException(const std::string& what_arg)
- : std::runtime_error(what_arg)
- {
- }
-
- QException* clone() const override { return new KisAssertException(*this); }
- void raise() const override { throw *this; }
-};
-
-#endif /* __KIS_ASSERT_EXCEPTION_H */