From 2b345df3d6bfdeeeab18ebc7a008a195a13fe1b7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 22 Jan 2023 01:02:06 +0100 Subject: [PATCH] Continued: - removed no longer used method and you can do the same differently --- .../model/contact/gender/GenderUtils.java | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/src/org/mxchange/jcontacts/model/contact/gender/GenderUtils.java b/src/org/mxchange/jcontacts/model/contact/gender/GenderUtils.java index 8abd41e..d0a7f82 100644 --- a/src/org/mxchange/jcontacts/model/contact/gender/GenderUtils.java +++ b/src/org/mxchange/jcontacts/model/contact/gender/GenderUtils.java @@ -18,8 +18,6 @@ package org.mxchange.jcontacts.model.contact.gender; import java.io.Serializable; import java.text.MessageFormat; -import java.util.LinkedList; -import java.util.List; /** * Gender utilities class @@ -38,25 +36,6 @@ public class GenderUtils implements Serializable { */ private static char[] validChars; - /** - * All available genders as a list - *

- * @return Selectable genders (not UNKNOWN) - */ - public static List allGenders () { - // Init list - final List list = new LinkedList<>(); - - // Walk through all genders - for (final Gender gender : Gender.values()) { - // Add it and check if it has been added - list.add(gender); - } - - // Return it - return list; - } - /** * Getter for Gender enumeration from given character *

-- 2.39.5