Commit e65c4514 authored by nanahira's avatar nanahira

no sort

parent 737e018f
import { countItems } from './src/utils';
import { Base64, fromUint8Array } from 'js-base64';
import { Base64 } from 'js-base64';
export default class YGOProDeck {
main: number[] = [];
extra: number[] = [];
side: number[] = [];
private sort() {
this.main.sort();
this.extra.sort();
this.side.sort();
}
bufferLength() {
const counted = [this.main, this.extra, this.side].map(countItems);
return counted.reduce((a, b) => a + b.size * 4, 0);
......@@ -61,7 +55,6 @@ export default class YGOProDeck {
cards.push(id);
}
}
this.sort();
return this;
}
......@@ -107,7 +100,6 @@ export default class YGOProDeck {
current.push(parseInt(line, 10));
}
}
this.sort();
return this;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment