Skip to content

Commit

Permalink
Remove unnecessary method
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuvindu committed Oct 13, 2023
1 parent d5fc6c7 commit 181d7f5
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions native/src/main/java/org/wssec/DocumentBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 181d7f5

Please sign in to comment.