From 4b0ea02f16658c580f42a0800bf70519907c56bf Mon Sep 17 00:00:00 2001 From: r-ca Date: Tue, 9 Jan 2024 17:22:23 +0900 Subject: [PATCH] cleanup --- .../model/document/internal/XmlMetaModel.java | 31 ------------------- 1 file changed, 31 deletions(-) diff --git a/model/src/main/java/one/nem/lacerta/model/document/internal/XmlMetaModel.java b/model/src/main/java/one/nem/lacerta/model/document/internal/XmlMetaModel.java index 3bbdeb4a..a4dff2e2 100644 --- a/model/src/main/java/one/nem/lacerta/model/document/internal/XmlMetaModel.java +++ b/model/src/main/java/one/nem/lacerta/model/document/internal/XmlMetaModel.java @@ -70,35 +70,4 @@ public class XmlMetaModel { this.pages = pages; } - // Public Methods - - public void addPage(XmlMetaPageModel page) { - this.pages.add(page); - } - - public void addPageAfterIndex(int index, XmlMetaPageModel page) { - this.pages.add(index, page); - - //Update index - this.updateIndex(); - } - - public void removePage(XmlMetaPageModel page) { - this.pages.remove(page); - } - - public void removePageAtIndex(int index) { - this.pages.remove(index); - - //Update index - this.updateIndex(); - } - - // Internal Methods - private void updateIndex() { // TODO-rca: 効率悪そう - for (int i = 0; i < this.pages.size(); i++) { - this.pages.get(i).setIndex(i); - } - } - }