From a35ec056a31dabe5428943f9e99045b854bcd62a Mon Sep 17 00:00:00 2001 From: Victor Harbo Johnston Date: Mon, 24 Jul 2023 13:04:18 +0200 Subject: [PATCH] remove unused method --- .../solrwayback/export/StreamingRawZipExport.java | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/main/java/dk/kb/netarchivesuite/solrwayback/export/StreamingRawZipExport.java b/src/main/java/dk/kb/netarchivesuite/solrwayback/export/StreamingRawZipExport.java index 352b83d6..5b92c57d 100644 --- a/src/main/java/dk/kb/netarchivesuite/solrwayback/export/StreamingRawZipExport.java +++ b/src/main/java/dk/kb/netarchivesuite/solrwayback/export/StreamingRawZipExport.java @@ -5,7 +5,6 @@ import dk.kb.netarchivesuite.solrwayback.service.dto.WarcMetadataFromSolr; import dk.kb.netarchivesuite.solrwayback.solr.SRequest; import dk.kb.netarchivesuite.solrwayback.solr.SolrGenericStreaming; -import dk.kb.netarchivesuite.solrwayback.util.SolrUtils; import org.apache.cxf.helpers.IOUtils; import org.apache.solr.common.SolrDocument; import org.slf4j.Logger; @@ -13,7 +12,6 @@ import java.io.IOException; import java.io.OutputStream; -import java.text.Normalizer; import java.util.Arrays; import java.util.zip.ZipEntry; import java.util.zip.ZipOutputStream; @@ -57,16 +55,6 @@ public void getStreamingOutputWithZipOfContent(String query, log.info("Zip export has completed. {} warc entries with the contentType: '{}' have been streamed, zipped and delivered.", streamedDocs, contentType); } - /** - * Normalize content type. - * @param contentType string to normalize. - * @return normalized contentType string. - */ - private String normalizeContentType(String contentType) { - String normalizedContentType = Normalizer.normalize(contentType, Normalizer.Form.NFD); - return normalizedContentType.replaceAll("[^\\x00-\\x7F]", ""); - } - /** * Extract metadata for a WARC entry from a Solr Document. * The method extracts, the ID, mimetype and fileextension for the WARC entry.