internal/packing: remove unused functions

This commit is contained in:
Hajime Hoshi 2023-01-02 18:21:21 +09:00
parent 471237b701
commit b4d8519f97

View File

@ -174,13 +174,6 @@ func (p *Page) Size() (int, int) {
return p.width, p.height
}
func (p *Page) SetMaxSize(size int) {
if p.maxSize > size {
panic("packing: maxSize cannot be decreased")
}
p.maxSize = size
}
func (p *Page) Alloc(width, height int) *Node {
if width <= 0 || height <= 0 {
panic("packing: width and height must > 0")