Remove debug code from FileStore

This commit is contained in:
Gary Talent 2018-02-02 01:21:54 -06:00
parent f430d6d398
commit 3edc8be1aa

View File

@ -10,10 +10,6 @@
#include <ox/std/std.hpp> #include <ox/std/std.hpp>
#include <iostream>
using std::cout;
using std::endl;
namespace ox { namespace ox {
template<typename FsT, typename InodeId> template<typename FsT, typename InodeId>
@ -805,7 +801,6 @@ void *FileStore<Header>::alloc(typename Header::FsSize_t size) {
compact(); compact();
next = nextInodeAddr(); next = nextInodeAddr();
if ((next + size) > ptr(end())) { if ((next + size) > ptr(end())) {
cout << "alloc returning nullptr\n";
return nullptr; return nullptr;
} }
} }
@ -823,7 +818,6 @@ void *FileStore<Header>::alloc(typename Header::FsSize_t size) {
template<typename Header> template<typename Header>
void FileStore<Header>::compact() { void FileStore<Header>::compact() {
cout << "FileStore::compact\n";
auto dest = ptr<Inode*>(firstInode()); auto dest = ptr<Inode*>(firstInode());
auto current = ptr<Inode*>(firstInode()); auto current = ptr<Inode*>(firstInode());
while (current->getNext() > firstInode() && current->getNext() < ptr(end())) { while (current->getNext() > firstInode() && current->getNext() < ptr(end())) {