Skip to content

Commit

Permalink
Pruning and simplifying old code
Browse files Browse the repository at this point in the history
  • Loading branch information
janvanmansum committed Dec 7, 2024
1 parent 9c0da24 commit 7e0ade9
Show file tree
Hide file tree
Showing 69 changed files with 1 addition and 4,055 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,12 @@
package nl.knaw.dans.dvingest.core.dansbag.deposit;

import nl.knaw.dans.dvingest.core.dansbag.domain.Deposit;
import nl.knaw.dans.dvingest.core.dansbag.domain.DepositLocation;
import nl.knaw.dans.dvingest.core.dansbag.exception.InvalidDepositException;

import java.nio.file.Path;

public interface DepositReader {

Deposit readDeposit(DepositLocation location) throws InvalidDepositException;

Deposit readDeposit(Path depositDir) throws InvalidDepositException;

}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

import gov.loc.repository.bagit.domain.Bag;
import nl.knaw.dans.dvingest.core.dansbag.domain.Deposit;
import nl.knaw.dans.dvingest.core.dansbag.domain.DepositLocation;
import nl.knaw.dans.dvingest.core.dansbag.exception.InvalidDepositException;
import nl.knaw.dans.dvingest.core.dansbag.io.BagDataManager;
import nl.knaw.dans.dvingest.core.dansbag.io.FileService;
Expand Down Expand Up @@ -53,11 +52,6 @@ public DepositReaderImpl(XmlReader xmlReader, BagDirResolver bagDirResolver, Fil
this.manifestHelper = manifestHelper;
}

@Override
public synchronized Deposit readDeposit(DepositLocation location) throws InvalidDepositException {
return readDeposit(location.getDir());
}

@Override
public Deposit readDeposit(Path depositDir) throws InvalidDepositException {
try {
Expand Down

This file was deleted.

Loading

0 comments on commit 7e0ade9

Please sign in to comment.