Skip to content

Commit c1e8063

Browse files
committed
chore: remove unused finalizeCallback
1 parent 1b87c49 commit c1e8063

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

permissions.mm

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@
210210
Napi::Promise::Deferred deferred = Napi::Promise::Deferred::New(env);
211211
Napi::ThreadSafeFunction ts_fn =
212212
Napi::ThreadSafeFunction::New(env, Napi::Function::New(env, NoOp),
213-
"contactsCallback", 0, 1, [](Napi::Env) {});
213+
"contactsCallback", 0, 1);
214214

215215
if (@available(macOS 10.11, *)) {
216216
CNContactStore *store = [CNContactStore new];
@@ -236,7 +236,7 @@
236236
Napi::Promise::Deferred deferred = Napi::Promise::Deferred::New(env);
237237
Napi::ThreadSafeFunction ts_fn =
238238
Napi::ThreadSafeFunction::New(env, Napi::Function::New(env, NoOp),
239-
"calendarCallback", 0, 1, [](Napi::Env) {});
239+
"calendarCallback", 0, 1);
240240

241241
[[EKEventStore new]
242242
requestAccessToEntityType:EKEntityTypeEvent
@@ -257,8 +257,7 @@
257257
Napi::Env env = info.Env();
258258
Napi::Promise::Deferred deferred = Napi::Promise::Deferred::New(env);
259259
Napi::ThreadSafeFunction ts_fn = Napi::ThreadSafeFunction::New(
260-
env, Napi::Function::New(env, NoOp), "remindersCallback", 0, 1,
261-
[](Napi::Env) {});
260+
env, Napi::Function::New(env, NoOp), "remindersCallback", 0, 1);
262261

263262
[[EKEventStore new]
264263
requestAccessToEntityType:EKEntityTypeReminder
@@ -288,8 +287,7 @@ void AskForFullDiskAccess(const Napi::CallbackInfo &info) {
288287
Napi::Env env = info.Env();
289288
Napi::Promise::Deferred deferred = Napi::Promise::Deferred::New(env);
290289
Napi::ThreadSafeFunction ts_fn = Napi::ThreadSafeFunction::New(
291-
env, Napi::Function::New(env, NoOp), "cameraAccessCallback", 0, 1,
292-
[](Napi::Env) {});
290+
env, Napi::Function::New(env, NoOp), "cameraAccessCallback", 0, 1);
293291

294292
if (@available(macOS 10.14, *)) {
295293
std::string auth_status = MediaAuthStatus("camera");
@@ -329,8 +327,7 @@ void AskForFullDiskAccess(const Napi::CallbackInfo &info) {
329327
Napi::Env env = info.Env();
330328
Napi::Promise::Deferred deferred = Napi::Promise::Deferred::New(env);
331329
Napi::ThreadSafeFunction ts_fn = Napi::ThreadSafeFunction::New(
332-
env, Napi::Function::New(env, NoOp), "microphoneAccessCallback", 0, 1,
333-
[](Napi::Env) {});
330+
env, Napi::Function::New(env, NoOp), "microphoneAccessCallback", 0, 1);
334331

335332
if (@available(macOS 10.14, *)) {
336333
std::string auth_status = MediaAuthStatus("microphone");

0 commit comments

Comments
 (0)