Skip to content

Commit 31571c0

Browse files
committed
Remove unused Model.scale and Quad.getScaled.
1 parent 327fec9 commit 31571c0

File tree

3 files changed

+0
-32
lines changed

3 files changed

+0
-32
lines changed

chunky/src/java/se/llbit/chunky/model/Model.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -226,18 +226,6 @@ public static Quad[] translate(Quad[] src, double x, double y, double z) {
226226
return out;
227227
}
228228

229-
/**
230-
* @param src source quads
231-
* @return Scaled copies of the source quads
232-
*/
233-
public static Quad[] scale(Quad[] src, double scale) {
234-
Quad[] out = new Quad[src.length];
235-
for (int i = 0; i < src.length; ++i) {
236-
out[i] = src[i].getScaled(scale);
237-
}
238-
return out;
239-
}
240-
241229
/**
242230
* @param src source quads
243231
* @return Quads rotated about the Z axis by some angle

chunky/src/java/se/llbit/chunky/model/minecraft/RedstoneTorchModel.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -165,17 +165,6 @@ public GlowQuad(Quad quad, Transform transform) {
165165
super(quad, transform);
166166
}
167167

168-
public GlowQuad(Quad quad, Matrix3 transform) {
169-
super(quad, transform);
170-
}
171-
172-
@Override
173-
public Quad getScaled(double scale) {
174-
Matrix3 transform = new Matrix3();
175-
transform.scale(scale);
176-
return new GlowQuad(this, transform);
177-
}
178-
179168
@Override
180169
public Quad transform(Transform transform) {
181170
return new GlowQuad(this, transform);

chunky/src/java/se/llbit/math/Quad.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -191,15 +191,6 @@ public boolean intersect(Ray ray) {
191191
return false;
192192
}
193193

194-
/**
195-
* @return Scaled copy of this quad
196-
*/
197-
public Quad getScaled(double scale) {
198-
Matrix3 transform = new Matrix3();
199-
transform.scale(scale);
200-
return new Quad(this, transform);
201-
}
202-
203194
public void addTriangles(Collection<Primitive> primitives, Material material, Transform transform) {
204195
Vector3 c0 = new Vector3(o);
205196
Vector3 c1 = new Vector3();

0 commit comments

Comments
 (0)