Remove deprecated AutoBaker

This commit is contained in:
Atlante45 2017-09-12 12:56:23 -07:00
parent c1685d827e
commit 48e58febc6
3 changed files with 0 additions and 70 deletions

View file

@ -19,7 +19,6 @@
#include <ThreadedAssignment.h>
#include "AssetUtils.h"
#include "AutoBaker.h"
#include "ReceivedMessage.h"

View file

@ -1,37 +0,0 @@
//
// AutoBaker.cpp
// assignment-client/src/assets
//
// Created by Clement Brisset on 8/9/17
// Copyright 2015 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "AutoBaker.h"
#include <shared/Algorithms.h>
using namespace alg;
void AutoBaker::addPendingBake(AssetHash hash) {
_pendingBakes.push_back(hash);
// Maybe start baking it right away
}
bool AutoBaker::assetNeedsBaking(AssetPath path, AssetHash hash) {
return path.endsWith(".fbx");
}
BakingStatus AutoBaker::getAssetStatus(AssetHash hash) {
if (find(_pendingBakes, hash) != std::end(_pendingBakes)) {
return Pending;
}
if (find(_currentlyBaking, hash) != std::end(_currentlyBaking)) {
return Baking;
}
return NotBaked;
}

View file

@ -1,32 +0,0 @@
//
// AutoBaker.h
// assignment-client/src/assets
//
// Created by Clement Brisset on 8/9/17
// Copyright 2015 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#ifndef hifi_AutoBaker_h
#define hifi_AutoBaker_h
#include <vector>
#include "AssetUtils.h"
class AutoBaker {
public:
void addPendingBake(AssetHash hash);
bool assetNeedsBaking(AssetPath path, AssetHash hash);
BakingStatus getAssetStatus(AssetHash hash);
private:
std::vector<AssetHash> _pendingBakes;
std::vector<AssetHash> _currentlyBaking;
};
#endif /* hifi_AutoBaker_h */