Factor out commit(MetaDataUpdate md) from ChangeUpdate

I missed this when factoring out AbstractChangeUpdate from ChangeUpdate.

Change-Id: I37d9fe82e1dbad64ef4e0733a4938053957e53fa
This commit is contained in:
Yacob Yonas
2014-07-14 17:30:04 -07:00
parent 2ef433bc92
commit f36b3e2c8d
2 changed files with 5 additions and 5 deletions

View File

@@ -136,6 +136,11 @@ public abstract class AbstractChangeUpdate extends VersionedMetaData {
};
}
@Override
public RevCommit commit(MetaDataUpdate md) throws IOException {
throw new UnsupportedOperationException("use commit()");
}
@Override
protected void onLoad() throws IOException, ConfigInvalidException {
//Do nothing; just reads the current revision.

View File

@@ -232,11 +232,6 @@ public class ChangeUpdate extends AbstractChangeUpdate {
return noteMap.writeTree(inserter);
}
@Override
public RevCommit commit(MetaDataUpdate md) throws IOException {
throw new UnsupportedOperationException("use commit()");
}
public RevCommit commit() throws IOException {
BatchMetaDataUpdate batch = openUpdate();
try {