Skip to content

Commit c9d1ac0

Browse files
committed
AST: Remove unused server field from InProcessPlugins.
1 parent 23b721f commit c9d1ac0

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

include/swift/AST/PluginRegistry.h

+2-6
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,6 @@ class CompilerPlugin {
9797

9898
/// Represents a in-process plugin server.
9999
class InProcessPlugins : public CompilerPlugin {
100-
/// PluginServer shared library handle.
101-
void *server;
102-
103100
/// Entry point in the in-process plugin server. It receives the request
104101
/// string and populate the response string. The return value indicates there
105102
/// was an error. If true the returned string contains the error message.
@@ -113,10 +110,9 @@ class InProcessPlugins : public CompilerPlugin {
113110
/// Temporary storage for the response data from 'handleMessageFn'.
114111
std::string receivedResponse;
115112

116-
InProcessPlugins(llvm::StringRef serverPath, void *server,
113+
InProcessPlugins(llvm::StringRef serverPath,
117114
HandleMessageFunction handleMessageFn)
118-
: CompilerPlugin(serverPath), server(server),
119-
handleMessageFn(handleMessageFn) {}
115+
: CompilerPlugin(serverPath), handleMessageFn(handleMessageFn) {}
120116

121117
public:
122118
/// Create an instance by loading the in-process plugin server at 'serverPath'

lib/AST/PluginRegistry.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ InProcessPlugins::create(const char *serverPath) {
108108
"entry point not found in '%s'", serverPath);
109109
}
110110
return std::unique_ptr<InProcessPlugins>(new InProcessPlugins(
111-
serverPath, server, reinterpret_cast<HandleMessageFunction>(funcPtr)));
111+
serverPath, reinterpret_cast<HandleMessageFunction>(funcPtr)));
112112
}
113113

114114
llvm::Error InProcessPlugins::sendMessage(llvm::StringRef message) {

0 commit comments

Comments
 (0)