X-Git-Url: http://gitweb.fperrin.net/?a=blobdiff_plain;f=tim%2Fprune%2FDataStatus.java;fp=tim%2Fprune%2FDataStatus.java;h=0000000000000000000000000000000000000000;hb=ce6f2161b8596f7018d6a76bff79bc9e571f35fd;hp=80ad838f7cfe147a0fd97cd0baf18ba967d325e4;hpb=2d8cb72e84d5cc1089ce77baf1e34ea3ea2f8465;p=GpsPrune.git diff --git a/tim/prune/DataStatus.java b/tim/prune/DataStatus.java deleted file mode 100644 index 80ad838..0000000 --- a/tim/prune/DataStatus.java +++ /dev/null @@ -1,34 +0,0 @@ -package tim.prune; - -/** - * Class to remember the current status of the data, - * and make it possible to see whether the data has - * changed in any way since the DataStatus was requested - */ -public class DataStatus -{ - private int _undoSize = 0; - private int _numUndos = 0; - - /** - * Constructor - * @param inUndoSize current size of undo stack - * @param inNumUndos number of operations undone - */ - public DataStatus(int inUndoSize, int inNumUndos) - { - _undoSize = inUndoSize; - _numUndos = inNumUndos; - } - - /** - * Has the data changed compared to the previous status? - * @param inPreviousStatus previous status obtained from App - * @return true if the status is now different - */ - public boolean hasDataChanged(DataStatus inPreviousStatus) - { - return _undoSize != inPreviousStatus._undoSize - || _numUndos != inPreviousStatus._numUndos; - } -}