最後に追加したLogを削除するメソッド追加

This commit is contained in:
r-ca 2024-01-24 18:34:25 +09:00
parent 383b34c3d2
commit 113bca723f
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9
2 changed files with 7 additions and 0 deletions

View File

@ -16,6 +16,8 @@ public interface LacertaVcs {
public void deletePage(int index); public void deletePage(int index);
public void undo();
public void createDocument(String documentId); public void createDocument(String documentId);
public void generateRevisionAtCurrent(String message); public void generateRevisionAtCurrent(String message);

View File

@ -67,6 +67,11 @@ public class LacertaVcsImpl implements LacertaVcs {
} }
@Override
public void undo() {
database.vcsLogDao().deleteLatestByDocumentId(documentId);
}
@Override @Override
public void createDocument(String documentId) { public void createDocument(String documentId) {
logger.debug(TAG, "createDocument"); logger.debug(TAG, "createDocument");