Skip to content

Commit c44ba1a

Browse files
committed
Fix typos in XPC implementation of ResponseBuilder
1 parent cdef2d9 commit c44ba1a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

tools/SourceKit/tools/sourcekitd/lib/API/sourcekitdAPI-XPC.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,10 +239,8 @@ void ResponseBuilder::Dictionary::set(SourceKit::UIdent Key,
239239

240240
void ResponseBuilder::Dictionary::set(SourceKit::UIdent Key,
241241
ArrayRef<SourceKit::UIdent> UIDs) {
242-
llvm::SmallString<128> Buf;
243242
xpc_object_t arr = xpc_array_create(nullptr, 0);
244243
for (auto UID : UIDs) {
245-
Buf = Str;
246244
xpc_array_set_uint64(arr, XPC_ARRAY_APPEND, uintptr_t(SKDUIDFromUIdent(UID)));
247245
}
248246
xpc_dictionary_set_value(Impl, Key.c_str(), arr);
@@ -251,10 +249,8 @@ void ResponseBuilder::Dictionary::set(SourceKit::UIdent Key,
251249

252250
void ResponseBuilder::Dictionary::set(SourceKit::UIdent Key,
253251
ArrayRef<sourcekitd_uid_t> UIDs) {
254-
llvm::SmallString<128> Buf;
255252
xpc_object_t arr = xpc_array_create(nullptr, 0);
256253
for (auto UID : UIDs) {
257-
Buf = Str;
258254
xpc_array_set_uint64(arr, XPC_ARRAY_APPEND, uintptr_t(UID));
259255
}
260256
xpc_dictionary_set_value(Impl, Key.c_str(), arr);

0 commit comments

Comments
 (0)