From df2b650a19cac909a3bf2140e3cab76e6e2f0883 Mon Sep 17 00:00:00 2001
From: Sasha Ilieva <sasha.ilieva@vereign.com>
Date: Tue, 28 May 2019 16:49:36 +0300
Subject: [PATCH] Comment not used method

---
 javascript/src/iframe/wopiapi-iframe.js | 46 ++++++++++++-------------
 1 file changed, 23 insertions(+), 23 deletions(-)

diff --git a/javascript/src/iframe/wopiapi-iframe.js b/javascript/src/iframe/wopiapi-iframe.js
index 6708bf7..d50acc2 100644
--- a/javascript/src/iframe/wopiapi-iframe.js
+++ b/javascript/src/iframe/wopiapi-iframe.js
@@ -22,31 +22,31 @@ WopiAPI.prototype.getPassports = function (resourceID, contentType) {
   return axios(requestConfig);
 };
 
-WopiAPI.prototype.createDocument = async (passportUUID, path, contentType, title) => {
-  const authenticationPublicKey = localStorage.getItem("authenticatedIdentity");
-  if (
-    !authenticationPublicKey ||
-    !window.loadedIdentities[authenticationPublicKey] ||
-    !extendPinCodeTtl(authenticationPublicKey)
-  ) {
-    return encodeResponse("400", "", "Identity not authenticated");
-  }
+// WopiAPI.prototype.createDocument = async (passportUUID, path, contentType, title) => {
+//   const authenticationPublicKey = localStorage.getItem("authenticatedIdentity");
+//   if (
+//     !authenticationPublicKey ||
+//     !window.loadedIdentities[authenticationPublicKey] ||
+//     !extendPinCodeTtl(authenticationPublicKey)
+//   ) {
+//     return encodeResponse("400", "", "Identity not authenticated");
+//   }
 
-  const config = {
-    headers: {
-      path,
-      passportuuid: passportUUID,
-      contentType,
-      title
-    }
-  };
-  const response = await executeRestfulFunction("private", window.viamApi, window.viamApi.documentCreateDocument,
-    config);
+//   const config = {
+//     headers: {
+//       path,
+//       passportuuid: passportUUID,
+//       contentType,
+//       title
+//     }
+//   };
+//   const response = await executeRestfulFunction("private", window.viamApi, window.viamApi.documentCreateDocument,
+//     config);
 
-  const resourceID = response.data;
-  const passports = await this.getPassports(resourceID, contentType);
-  return axios(config);
-};
+//   const resourceID = response.data;
+//   const passports = await this.getPassports(resourceID, contentType);
+//   return axios(config);
+// };
 
 WopiAPI.prototype.putDocument = function (resourceID, accessToken, file) {
   const { publicKey, uuid, token, deviceHash } = window.viamApi.getConfig().headers;
-- 
GitLab