app/src/main/java/org/andstatus/app/data/DataPruner.java
/**
     * @return true if done successfully, false if skipped or an error
     */
@return true if done successfully, false if skipped or an error
@return true if done successfully false if skipped or an error
public boolean prune() {
        final String method = "prune";
        if (db == null) {
            MyLog.databaseIsNull(() -> DataPruner.class);
            return false;
        }
        if (!mayPruneNow()) {
            return false;
        }
        logger.logProgress(method + " started");
        boolean pruned = pruneActivities();
        if (mDeleted > 0) {
            pruneParentlessAttachments();
        }
        deleteTempFiles();
        pruneMedia();
        pruneTimelines(Long.max(latestTimestamp, getLatestTimestamp(MAX_DAYS_UNUSED_TIMELINES_TO_KEEP)));
        pruneTempActors();
        pruneLogs(MAX_DAYS_LOGS_TO_KEEP);
        setDataPrunedNow();
        logger.onComplete(pruned);
        return pruned;
    }
public boolean prune ( ) { final String method = "prune" ; if ( db == null ) { MyLog . databaseIsNull ( ( ) -> DataPruner . class ) ; return false ; } if ( ! mayPruneNow ( ) ) { return false ; } logger . logProgress ( method + " started" ) ; boolean pruned = pruneActivities ( ) ; if ( mDeleted > 0 ) { pruneParentlessAttachments ( ) ; } deleteTempFiles ( ) ; pruneMedia ( ) ; pruneTimelines ( Long . max ( latestTimestamp , getLatestTimestamp ( MAX_DAYS_UNUSED_TIMELINES_TO_KEEP ) ) ) ; pruneTempActors ( ) ; pruneLogs ( MAX_DAYS_LOGS_TO_KEEP ) ; setDataPrunedNow ( ) ; logger . onComplete ( pruned ) ; return pruned ; }
@return true if done successfully, false if skipped or an error
@return true if done successfully false if skipped or an error