From f8d42a22a22395c5ca0675e5a8c82b4a17064971 Mon Sep 17 00:00:00 2001 From: CodeDead Date: Fri, 8 Dec 2023 05:50:41 +0100 Subject: [PATCH] feat: removed unused code, removed unused translations --- .../deadhash/domain/utils/StreamUtility.java | 37 ------------------- app/src/main/res/values-de/strings.xml | 1 - app/src/main/res/values-fr/strings.xml | 1 - app/src/main/res/values-it/strings.xml | 1 - app/src/main/res/values-night/themes.xml | 2 - app/src/main/res/values-nl/strings.xml | 1 - app/src/main/res/values-pt-rBR/strings.xml | 1 - app/src/main/res/values-ru/strings.xml | 1 - app/src/main/res/values/strings.xml | 1 - app/src/main/res/values/themes.xml | 2 - build.gradle | 2 +- 11 files changed, 1 insertion(+), 49 deletions(-) delete mode 100644 app/src/main/java/com/codedead/deadhash/domain/utils/StreamUtility.java diff --git a/app/src/main/java/com/codedead/deadhash/domain/utils/StreamUtility.java b/app/src/main/java/com/codedead/deadhash/domain/utils/StreamUtility.java deleted file mode 100644 index ca0326a..0000000 --- a/app/src/main/java/com/codedead/deadhash/domain/utils/StreamUtility.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.codedead.deadhash.domain.utils; - -import java.io.IOException; -import java.io.InputStream; -import java.io.OutputStream; - -public final class StreamUtility { - - private static final int BASE_BUFFER_SIZE = 1024; - - /** - * Initialize a new StreamUtility - */ - private StreamUtility() { - // Empty constructor - } - - /** - * Copy a stream - * - * @param inputStream The InputStream that should be copied - * @param outputStream The OutputSteam that should contain the copied data - * @throws IOException When the Stream could not be copied - */ - public static void copyStream(final InputStream inputStream, final OutputStream outputStream) throws IOException { - final byte[] bytes = new byte[BASE_BUFFER_SIZE]; - int count; - - while ((count = inputStream.read(bytes)) != -1) { - outputStream.write(bytes, 0, count); - } - - inputStream.close(); - outputStream.flush(); - outputStream.close(); - } -} diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index 04f6356..7cbf2e9 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -36,7 +36,6 @@ Der Play Store kann nicht geöffnet werden! Website kann nicht geöffnet werden! Wählen Sie eine Datei aus - Es kann keine Kopie der ausgewählten Datei erstellt werden! Die ausgewählte Datei kann nicht geöffnet werden! Es wurde keine Datei ausgewählt! Thema diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index fa19a7d..5727c51 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -36,7 +36,6 @@ Impossible d\'ouvrir le Play Store! Impossible d\'ouvrir le site Web! Sélectionner un fichier - Impossible de créer une copie du fichier sélectionné! Impossible d\'ouvrir le fichier sélectionné! Aucun fichier n\'a été sélectionné! Thème diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml index 287fddb..5d26d8c 100644 --- a/app/src/main/res/values-it/strings.xml +++ b/app/src/main/res/values-it/strings.xml @@ -36,7 +36,6 @@ Impossibile aprire il Play Store! Impossibile aprire il sito Web! Seleziona un file - Impossibile creare una copia del file selezionato! Impossibile aprire il file selezionato! Nessun file è stato selezionato! Tema diff --git a/app/src/main/res/values-night/themes.xml b/app/src/main/res/values-night/themes.xml index 4578d0b..de5ebea 100644 --- a/app/src/main/res/values-night/themes.xml +++ b/app/src/main/res/values-night/themes.xml @@ -19,7 +19,5 @@ true - -