nocopy: remove deprecated header

This commit is contained in:
Danny Robson 2019-05-17 13:44:14 +10:00
parent 8beada1646
commit 7805153e17
5 changed files with 14 additions and 34 deletions

View File

@ -405,7 +405,6 @@ list (
matrix.hpp
memory/deleter.cpp
memory/deleter.hpp
nocopy.hpp
parallel/queue.cpp
parallel/queue.hpp
parse/time.cpp

18
log.hpp
View File

@ -9,8 +9,6 @@
#ifndef CRUFT_UTIL_LOG_HPP
#define CRUFT_UTIL_LOG_HPP
#include "nocopy.hpp"
#include "format.hpp"
#include <cruft/util/preprocessor.hpp>
@ -111,11 +109,17 @@ namespace cruft {
///////////////////////////////////////////////////////////////////////////
class scoped_logger : public nocopy {
class scoped_logger {
public:
scoped_logger (level_t, std::string);
~scoped_logger ();
scoped_logger (scoped_logger const&) = delete;
scoped_logger& operator= (scoped_logger const&) = delete;
scoped_logger (scoped_logger &&) = delete;
scoped_logger& operator= (scoped_logger &&) = delete;
protected:
const level_t m_level;
const std::string m_message;
@ -123,11 +127,17 @@ namespace cruft {
///////////////////////////////////////////////////////////////////////////
class scoped_timer : public nocopy {
class scoped_timer {
public:
scoped_timer (level_t, std::string);
~scoped_timer ();
scoped_timer (scoped_timer const&) = delete;
scoped_timer& operator= (scoped_timer const&) = delete;
scoped_timer (scoped_timer &&) = delete;
scoped_timer& operator= (scoped_timer &&) = delete;
private:
const level_t m_level;
const std::string m_message;

View File

@ -1,27 +0,0 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* Copyright 2010 Danny Robson <danny@nerdcruft.net>
*/
#ifndef __NOCOPY_HPP
#define __NOCOPY_HPP
namespace cruft {
class nocopy {
protected:
nocopy () { ; }
~nocopy () { ; }
private:
nocopy (const nocopy & ) = delete;
nocopy ( nocopy &&) = delete;
nocopy& operator= (const nocopy & ) = delete;
nocopy& operator= ( nocopy &&) = delete;
};
}
#endif

View File

@ -8,7 +8,6 @@
#pragma once
#include "nocopy.hpp"
#include "debug/assert.hpp"
#include "cast.hpp"

View File

@ -10,7 +10,6 @@
#include "types/traits.hpp"
#include "debug/assert.hpp"
#include "nocopy.hpp"
#include <algorithm>
#include <functional>