diff --git a/src/js_sync.hpp b/src/js_sync.hpp index 8d2ac585..168ba535 100644 --- a/src/js_sync.hpp +++ b/src/js_sync.hpp @@ -171,10 +171,8 @@ public: static void simulate_error(ContextType, FunctionType, ObjectType, size_t, const ValueType[], ReturnValue &); static void refresh_access_token(ContextType, FunctionType, ObjectType, size_t, const ValueType[], ReturnValue &); -#if REALM_ENABLE_SYNC static void add_progress_notification(ContextType ctx, FunctionType, ObjectType this_object, size_t argc, const ValueType arguments[], ReturnValue &); static void remove_progress_notification(ContextType ctx, FunctionType, ObjectType this_object, size_t argc, const ValueType arguments[], ReturnValue &); -#endif PropertyMap const properties = { {"config", {wrap, nullptr}}, @@ -186,10 +184,8 @@ public: MethodMap const methods = { {"_simulateError", wrap}, {"_refreshAccessToken", wrap}, -#if REALM_ENABLE_SYNC {"addProgressNotification", wrap}, {"removeProgressNotification", wrap}, -#endif }; }; @@ -316,7 +312,6 @@ void SessionClass::refresh_access_token(ContextType ctx, FunctionType, Object } } -#if REALM_ENABLE_SYNC template void SessionClass::add_progress_notification(ContextType ctx, FunctionType, ObjectType this_object, size_t argc, const ValueType arguments[], ReturnValue &return_value) { validate_argument_count(argc, 3); @@ -388,7 +383,6 @@ void SessionClass::remove_progress_notification(ContextType ctx, FunctionType session->unregister_progress_notifier(reg); } } -#endif template class SyncClass : public ClassDefinition {