Removed unused exception class

This commit is contained in:
Sebastian Messmer 2015-04-28 13:19:44 +02:00
parent cb402fd14b
commit 5802040d78
3 changed files with 0 additions and 42 deletions

View File

@ -1,19 +0,0 @@
#include "FileAlreadyExistsException.h"
namespace bf = boost::filesystem;
using std::runtime_error;
using std::string;
namespace blockstore {
namespace ondisk {
FileAlreadyExistsException::FileAlreadyExistsException(const bf::path &filepath)
: runtime_error(string("The file ")+filepath.c_str()+" already exists") {
}
FileAlreadyExistsException::~FileAlreadyExistsException() {
}
}
}

View File

@ -1,22 +0,0 @@
#pragma once
#ifndef BLOCKSTORE_IMPLEMENTATIONS_ONDISK_FILEALREADYEXISTSEXCEPTION_H_
#define BLOCKSTORE_IMPLEMENTATIONS_ONDISK_FILEALREADYEXISTSEXCEPTION_H_
#include <boost/filesystem/path.hpp>
#include <stdexcept>
namespace blockstore {
namespace ondisk {
//TODO We probably don't want an exception for that
class FileAlreadyExistsException: public std::runtime_error {
public:
explicit FileAlreadyExistsException(const boost::filesystem::path &filepath);
virtual ~FileAlreadyExistsException();
};
}
}
#endif

View File

@ -1,7 +1,6 @@
#include <cstring>
#include <fstream>
#include <boost/filesystem.hpp>
#include "FileAlreadyExistsException.h"
#include "OnDiskBlock.h"
#include "OnDiskBlockStore.h"
#include "../../utils/FileDoesntExistException.h"