aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/nim
diff options
context:
space:
mode:
authorJarek Kobus <[email protected]>2025-02-06 13:56:29 +0100
committerJarek Kobus <[email protected]>2025-02-17 16:46:01 +0000
commitc2e4f5baede852b820c64602fbc12f250e78d457 (patch)
tree9c15d7720145e50495e367ddac8b1ea404f87b33 /src/plugins/nim
parent359113f0ed36900a387d78bf90674e1afc97c292 (diff)
Nim: Remove remaining dead ends
Detected by Axivion plugin. Change-Id: I4a3407ca1256abf064609b6d5b9a5b3f743f9469 Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/nim')
-rw-r--r--src/plugins/nim/project/nimbleproject.cpp7
-rw-r--r--src/plugins/nim/project/nimproject.cpp13
-rw-r--r--src/plugins/nim/suggest/client.cpp5
-rw-r--r--src/plugins/nim/suggest/client.h1
-rw-r--r--src/plugins/nim/suggest/clientrequests.h5
-rw-r--r--src/plugins/nim/suggest/sexprlexer.h40
-rw-r--r--src/plugins/nim/suggest/sexprparser.h8
-rw-r--r--src/plugins/nim/tools/sourcecodestream.h10
8 files changed, 0 insertions, 89 deletions
diff --git a/src/plugins/nim/project/nimbleproject.cpp b/src/plugins/nim/project/nimbleproject.cpp
index 46016b44147..258ee41e83d 100644
--- a/src/plugins/nim/project/nimbleproject.cpp
+++ b/src/plugins/nim/project/nimbleproject.cpp
@@ -28,13 +28,6 @@ struct NimbleMetadata
QStringList bin;
QString binDir;
QString srcDir;
-
- bool operator==(const NimbleMetadata &o) const {
- return bin == o.bin && binDir == o.binDir && srcDir == o.srcDir;
- }
- bool operator!=(const NimbleMetadata &o) const {
- return !operator==(o);
- }
};
const char C_NIMBLEPROJECT_TASKS[] = "Nim.NimbleProject.Tasks";
diff --git a/src/plugins/nim/project/nimproject.cpp b/src/plugins/nim/project/nimproject.cpp
index ea45a25f4b1..9df5b931b46 100644
--- a/src/plugins/nim/project/nimproject.cpp
+++ b/src/plugins/nim/project/nimproject.cpp
@@ -340,9 +340,6 @@ public:
// Keep for compatibility with Qt Creator 4.10
void toMap(Store &map) const final;
- QStringList excludedFiles() const;
- void setExcludedFiles(const QStringList &excludedFiles);
-
protected:
// Keep for compatibility with Qt Creator 4.10
RestoreResult fromMap(const Store &map, QString *errorMessage) final;
@@ -372,16 +369,6 @@ Project::RestoreResult NimProject::fromMap(const Store &map, QString *errorMessa
return result;
}
-QStringList NimProject::excludedFiles() const
-{
- return m_excludedFiles;
-}
-
-void NimProject::setExcludedFiles(const QStringList &excludedFiles)
-{
- m_excludedFiles = excludedFiles;
-}
-
// Setup
void setupNimProject()
diff --git a/src/plugins/nim/suggest/client.cpp b/src/plugins/nim/suggest/client.cpp
index a0718aefd51..daf5d59bbd0 100644
--- a/src/plugins/nim/suggest/client.cpp
+++ b/src/plugins/nim/suggest/client.cpp
@@ -85,11 +85,6 @@ void NimSuggestClient::clear()
m_lastMessageId = 0;
}
-void NimSuggestClient::onDisconnectedFromServer()
-{
- clear();
-}
-
void NimSuggestClient::onReadyRead()
{
std::array<char, 2048> buffer;
diff --git a/src/plugins/nim/suggest/client.h b/src/plugins/nim/suggest/client.h
index fa2ac02a573..da91e03f906 100644
--- a/src/plugins/nim/suggest/client.h
+++ b/src/plugins/nim/suggest/client.h
@@ -46,7 +46,6 @@ private:
const QString &dirtyFile);
void clear();
- void onDisconnectedFromServer();
void onReadyRead();
void parsePayload(const char *payload, std::size_t size);
diff --git a/src/plugins/nim/suggest/clientrequests.h b/src/plugins/nim/suggest/clientrequests.h
index 3198f41789e..e0bbc044829 100644
--- a/src/plugins/nim/suggest/clientrequests.h
+++ b/src/plugins/nim/suggest/clientrequests.h
@@ -90,11 +90,6 @@ public:
return m_lines;
}
- const std::vector<Line> &lines() const
- {
- return m_lines;
- }
-
signals:
void finished();
diff --git a/src/plugins/nim/suggest/sexprlexer.h b/src/plugins/nim/suggest/sexprlexer.h
index 88c4ee021a6..ce39b97f819 100644
--- a/src/plugins/nim/suggest/sexprlexer.h
+++ b/src/plugins/nim/suggest/sexprlexer.h
@@ -38,24 +38,6 @@ struct SExprLexer {
, m_pos(0)
{}
- SExprLexer(const char *data)
- : SExprLexer(data, ::strlen(data))
- {}
-
- SExprLexer(const std::string &data)
- : SExprLexer(data.c_str(), data.length())
- {}
-
- const char *data() const
- {
- return m_data;
- }
-
- std::size_t dataLength() const
- {
- return m_dataLength;
- }
-
static size_t tokenLength(Token &token)
{
return token.end - token.start + 1;
@@ -129,28 +111,6 @@ struct SExprLexer {
return Finished;
}
- static std::vector<Token> parse(const std::string &data)
- {
- return parse(data.data(), data.size());
- }
-
- static std::vector<Token> parse(const char *data)
- {
- return parse(data, ::strlen(data));
- }
-
- static std::vector<Token> parse(const char *data, std::size_t data_size)
- {
- std::vector<Token> result;
- SExprLexer lexer(data, data_size);
- Token token {};
- while (lexer.next(token)) {
- result.push_back(token);
- token = {};
- }
- return result;
- }
-
private:
const char *m_data = nullptr;
std::size_t m_dataLength = 0;
diff --git a/src/plugins/nim/suggest/sexprparser.h b/src/plugins/nim/suggest/sexprparser.h
index 1e3841e67e6..864ae9cc67d 100644
--- a/src/plugins/nim/suggest/sexprparser.h
+++ b/src/plugins/nim/suggest/sexprparser.h
@@ -28,14 +28,6 @@ struct SExprParser {
std::string value;
};
- SExprParser(const std::string &str)
- : SExprParser(str.data(), str.length())
- {}
-
- SExprParser(const char *data)
- : SExprParser(data, ::strlen(data))
- {}
-
SExprParser(const char *data, std::size_t length)
: m_lexer(SExprLexer(data, length))
{}
diff --git a/src/plugins/nim/tools/sourcecodestream.h b/src/plugins/nim/tools/sourcecodestream.h
index 2bcf4aa29f0..f4446dbd917 100644
--- a/src/plugins/nim/tools/sourcecodestream.h
+++ b/src/plugins/nim/tools/sourcecodestream.h
@@ -33,11 +33,6 @@ public:
m_position = m_textLength;
}
- inline int pos()
- {
- return m_position;
- }
-
inline int length() const
{
return m_position - m_markedPosition;
@@ -67,11 +62,6 @@ public:
return QString(start, length());
}
- inline QString value(int begin, int length) const
- {
- return QString(m_text + begin, length);
- }
-
private:
const QChar *m_text;
const int m_textLength;