From 181d7f503b1a6e0c6dd6387fd896d9ce1a40f558 Mon Sep 17 00:00:00 2001 From: Nuvindu Date: Fri, 13 Oct 2023 09:56:45 +0530 Subject: [PATCH] Remove unnecessary method --- native/src/main/java/org/wssec/DocumentBuilder.java | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/native/src/main/java/org/wssec/DocumentBuilder.java b/native/src/main/java/org/wssec/DocumentBuilder.java index c6b15ad..e73bf60 100644 --- a/native/src/main/java/org/wssec/DocumentBuilder.java +++ b/native/src/main/java/org/wssec/DocumentBuilder.java @@ -16,7 +16,6 @@ package org.wssec; -import io.ballerina.runtime.api.creators.ErrorCreator; import io.ballerina.runtime.api.creators.ValueCreator; import io.ballerina.runtime.api.utils.StringUtils; import io.ballerina.runtime.api.values.BArray; @@ -46,17 +45,6 @@ protected DocumentBuilder(Document document) { this.document = document; } - public static Object getDocument(BObject documentBuilder) { - BHandle handle = (BHandle) documentBuilder.get(StringUtils.fromString(NATIVE_DOCUMENT)); - DocumentBuilder docBuilder = (DocumentBuilder) handle.getValue(); - Document document = docBuilder.getNativeDocument(); - try { - return WsSecurityUtils.convertDocumentToString(document); - } catch (Exception e) { - return ErrorCreator.createError(StringUtils.fromString(e.getMessage())); - } - } - public static BArray getSignatureData(BObject document) { BHandle handle = (BHandle) document.get(StringUtils.fromString(NATIVE_DOCUMENT)); DocumentBuilder docBuilder = (DocumentBuilder) handle.getValue();