@@ -55,35 +55,6 @@ class NativeToJsBridge {
55
55
*/
56
56
void invokeCallback (double callbackId, folly::dynamic&& args);
57
57
58
- /* *
59
- * Executes a JS method on the given executor synchronously, returning its
60
- * return value. JSException will be thrown if JS throws an exception;
61
- * another standard exception may be thrown for C++ bridge failures, or if
62
- * the executor is not capable of synchronous calls.
63
- *
64
- * This method is experimental, and may be modified or removed.
65
- *
66
- * loadApplicationScriptSync() must be called and finished executing
67
- * before callFunctionSync().
68
- */
69
- template <typename T>
70
- Value callFunctionSync (const std::string& module, const std::string& method, T&& args) {
71
- if (*m_destroyed) {
72
- throw std::logic_error (
73
- folly::to<std::string>(" Synchronous call to " , module, " ." , method,
74
- " after bridge is destroyed" ));
75
- }
76
-
77
- JSCExecutor *jscExecutor = dynamic_cast <JSCExecutor*>(m_executor.get ());
78
- if (!jscExecutor) {
79
- throw std::invalid_argument (
80
- folly::to<std::string>(" Executor type " , typeid (m_executor.get ()).name (),
81
- " does not support synchronous calls" ));
82
- }
83
-
84
- return jscExecutor->callFunctionSync (module, method, std::forward<T>(args));
85
- }
86
-
87
58
/* *
88
59
* Starts the JS application. If bundleRegistry is non-null, then it is
89
60
* used to fetch JavaScript modules as individual scripts.
0 commit comments