Don’t throw exception when removing a field that is not in the profile.
[Sone.git] / src / main / java / net / pterodactylus / sone / data / Profile.java
index d091b89..8c1e805 100644 (file)
@@ -258,15 +258,8 @@ public class Profile implements Fingerprintable {
                fields.add(min(fieldIndex + 1, fields.size()), field);
        }
 
-       /**
-        * Removes the given field.
-        *
-        * @param field
-        *            The field to remove
-        */
        public void removeField(Field field) {
                checkNotNull(field, "field must not be null");
-               checkArgument(hasField(field), "field must belong to this profile");
                fields.remove(field);
        }