diff Platforms/Wasm/Defaults.cpp @ 537:d785ee57bd95 dev

Merge from bgo-commands-codegen
author Benjamin Golinvaux <bgo@osimis.io>
date Tue, 19 Mar 2019 14:43:46 +0100
parents 79bb0a02d1cc
children 70992b38aa8a
line wrap: on
line diff
--- a/Platforms/Wasm/Defaults.cpp	Mon Mar 18 16:01:07 2019 +0100
+++ b/Platforms/Wasm/Defaults.cpp	Tue Mar 19 14:43:46 2019 +0100
@@ -357,21 +357,6 @@
     return NULL;
   }
 
-  const char* EMSCRIPTEN_KEEPALIVE SendCommandToStoneApplication(const char* message) 
-  {
-    static std::string output; // we don't want the string to be deallocated when we return to JS code so we always use the same string (this is fine since JS is single-thread)
-
-    printf("SendCommandToStoneApplication\n");
-    printf("%s", message);
-
-    if (applicationWasmAdapter.get() != NULL) {
-      applicationWasmAdapter->HandleCommandFromWeb(output, std::string(message));
-      return output.c_str();
-    }
-    printf("This Stone application does not have a Web Adapter");
-    return NULL;
-  }
-
 #ifdef __cplusplus
 }
 #endif