Skip to content

Commit cd876d4

Browse files
committed
removed copy methods
1 parent a750f1c commit cd876d4

1 file changed

Lines changed: 0 additions & 23 deletions

File tree

jme3-core/src/main/java/com/jme3/anim/AlertArmatureMask.java

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,6 @@ public AlertArmatureMask(String layer, AnimComposer anim, SkinningControl skin)
4141
this.skin = skin;
4242
}
4343

44-
/**
45-
* Creates a copyFor of this {@code AlertArmatureMask} for the given layer.
46-
* @param layer
47-
* @return copy of this {@code AlertArmatureMask} for the layer
48-
*/
49-
public AlertArmatureMask copyFor(String layer) {
50-
return new AlertArmatureMask(layer, anim, skin);
51-
}
5244
/**
5345
* Makes a layer for this mask.
5446
*/
@@ -187,21 +179,6 @@ public static AlertArmatureMask all(String layer, Spatial spatial) {
187179
public static AlertArmatureMask all(String layer, AnimComposer anim, SkinningControl skin) {
188180
return new AlertArmatureMask(layer, anim, skin).addAll();
189181
}
190-
/**
191-
* Creates an array of masks all sharing the same joint masking as {@code base}.
192-
* <p>This is useful, for example, when you want to create several layers that all cover
193-
* the entire armature.
194-
* @param base base mask used to create other masks
195-
* @param layers layer names to use
196-
* @return array of new masks
197-
*/
198-
public static AlertArmatureMask[] create(AlertArmatureMask base, String... layers) {
199-
AlertArmatureMask[] masks = new AlertArmatureMask[layers.length];
200-
for (int i = 0; i < layers.length; i++) {
201-
masks[i] = base.copyFor(layers[i]);
202-
}
203-
return masks;
204-
}
205182

206183
}
207184

0 commit comments

Comments
 (0)