Skip to content

Commit

Permalink
removing "include/make_unique.h" as it is not useful anymore
Browse files Browse the repository at this point in the history
the initial reason for attracting attention, was that it made the build fail 
on certain conditions.
updated documentation
  • Loading branch information
alaaeddineelamri committed Jul 11, 2022
1 parent 48e2177 commit 4962da4
Show file tree
Hide file tree
Showing 40 changed files with 26 additions and 132 deletions.
1 change: 0 additions & 1 deletion core/src/cats/sql_get.cc
Expand Up @@ -38,7 +38,6 @@
# include "sql.h"
# include "lib/edit.h"
# include "lib/volume_session_info.h"
# include "include/make_unique.h"

/* -----------------------------------------------------------------------
*
Expand Down
1 change: 0 additions & 1 deletion core/src/dird/bsr.cc
Expand Up @@ -37,7 +37,6 @@
#include "lib/berrno.h"
#include "lib/edit.h"
#include "lib/parse_conf.h"
#include "include/make_unique.h"

#include <algorithm>

Expand Down
3 changes: 1 addition & 2 deletions core/src/dird/dbcopy/database_column_descriptions.cc
@@ -1,7 +1,7 @@
/*
BAREOS® - Backup Archiving REcovery Open Sourced
Copyright (C) 2020-2020 Bareos GmbH & Co. KG
Copyright (C) 2020-2022 Bareos GmbH & Co. KG
This program is Free Software; you can redistribute it and/or
modify it under the terms of version three of the GNU Affero General Public
Expand All @@ -22,7 +22,6 @@
#include "include/bareos.h"
#include "cats/cats.h"
#include "dird/dbcopy/database_column_descriptions.h"
#include "include/make_unique.h"
#include "lib/util.h"

#include <algorithm>
Expand Down
3 changes: 1 addition & 2 deletions core/src/dird/dbcopy/database_import_mysql.cc
@@ -1,7 +1,7 @@
/*
BAREOS® - Backup Archiving REcovery Open Sourced
Copyright (C) 2020-2020 Bareos GmbH & Co. KG
Copyright (C) 2020-2022 Bareos GmbH & Co. KG
This program is Free Software; you can redistribute it and/or
modify it under the terms of version three of the GNU Affero General Public
Expand All @@ -25,7 +25,6 @@
#include "dird/dbcopy/database_table_descriptions.h"
#include "dird/dbcopy/progress.h"
#include "dird/dbcopy/row_data.h"
#include "include/make_unique.h"

#include <cassert>
#include <chrono>
Expand Down
3 changes: 1 addition & 2 deletions core/src/dird/dbcopy/database_table_descriptions.h
@@ -1,7 +1,7 @@
/*
BAREOS® - Backup Archiving REcovery Open Sourced
Copyright (C) 2020-2021 Bareos GmbH & Co. KG
Copyright (C) 2020-2022 Bareos GmbH & Co. KG
This program is Free Software; you can redistribute it and/or
modify it under the terms of version three of the GNU Affero General Public
Expand All @@ -24,7 +24,6 @@

#include "dird/dbcopy/database_column_descriptions.h"
#include "dird/dbcopy/database_connection.h"
#include "include/make_unique.h"

#include <algorithm>
#include <cctype>
Expand Down
3 changes: 1 addition & 2 deletions core/src/dird/dbcopy/dbcopy.cc
@@ -1,7 +1,7 @@
/*
BAREOS® - Backup Archiving REcovery Open Sourced
Copyright (C) 2020-2020 Bareos GmbH & Co. KG
Copyright (C) 2020-2022 Bareos GmbH & Co. KG
This program is Free Software; you can redistribute it and/or
modify it under the terms of version three of the GNU Affero General Public
Expand Down Expand Up @@ -32,7 +32,6 @@
#include "dird/get_database_connection.h"
#include "dird/jcr_private.h"
#include "dird/job.h"
#include "include/make_unique.h"
#include "lib/parse_conf.h"
#include "lib/util.h"

Expand Down
3 changes: 1 addition & 2 deletions core/src/dird/dbcopy/progress.cc
@@ -1,7 +1,7 @@
/*
BAREOS® - Backup Archiving REcovery Open Sourced
Copyright (C) 2020-2021 Bareos GmbH & Co. KG
Copyright (C) 2020-2022 Bareos GmbH & Co. KG
This program is Free Software; you can redistribute it and/or
modify it under the terms of version three of the GNU Affero General Public
Expand All @@ -22,7 +22,6 @@
#include "include/bareos.h"
#include "cats/cats.h"
#include "dird/dbcopy/progress.h"
#include "include/make_unique.h"

#include <array>
#include <iomanip>
Expand Down
1 change: 0 additions & 1 deletion core/src/dird/job.cc
Expand Up @@ -70,7 +70,6 @@
#include "lib/tree.h"
#include "lib/util.h"
#include "lib/watchdog.h"
#include "include/make_unique.h"
#include "include/protocol_types.h"

namespace directordaemon {
Expand Down
2 changes: 1 addition & 1 deletion core/src/dird/jobq.cc
Expand Up @@ -456,7 +456,7 @@ extern "C" void* jobq_server(void* arg)
jcr->impl->SDJobStatus = 0;
unlock_mutex(jq->mutex); /* release internal lock */
FreeJcr(jcr);
free(je); /* release job entry */
free(je); /* release job entry */
lock_mutex(jq->mutex); /* reacquire job queue lock */
}

Expand Down
3 changes: 1 addition & 2 deletions core/src/dird/scheduler.cc
Expand Up @@ -3,7 +3,7 @@
Copyright (C) 2000-2011 Free Software Foundation Europe e.V.
Copyright (C) 2011-2012 Planets Communications B.V.
Copyright (C) 2013-2020 Bareos GmbH & Co. KG
Copyright (C) 2013-2022 Bareos GmbH & Co. KG
This program is Free Software; you can redistribute it and/or
modify it under the terms of version three of the GNU Affero General Public
Expand Down Expand Up @@ -39,7 +39,6 @@
#include "dird/jcr_private.h"
#include "dird/job.h"
#include "dird/storage.h"
#include "include/make_unique.h"
#include "lib/parse_conf.h"

class JobControlRecord;
Expand Down
3 changes: 1 addition & 2 deletions core/src/dird/scheduler_job_item_queue.cc
@@ -1,7 +1,7 @@
/*
BAREOS® - Backup Archiving REcovery Open Sourced
Copyright (C) 2019-2020 Bareos GmbH & Co. KG
Copyright (C) 2019-2022 Bareos GmbH & Co. KG
This program is Free Software; you can redistribute it and/or
modify it under the terms of version three of the GNU Affero General Public
Expand All @@ -21,7 +21,6 @@

#include "include/bareos.h"
#include "dird/dird_conf.h"
#include "include/make_unique.h"
#include "scheduler_job_item_queue.h"

#include <iostream>
Expand Down
3 changes: 1 addition & 2 deletions core/src/dird/scheduler_private.cc
Expand Up @@ -3,7 +3,7 @@
Copyright (C) 2000-2011 Free Software Foundation Europe e.V.
Copyright (C) 2011-2012 Planets Communications B.V.
Copyright (C) 2013-2020 Bareos GmbH & Co. KG
Copyright (C) 2013-2022 Bareos GmbH & Co. KG
This program is Free Software; you can redistribute it and/or
modify it under the terms of version three of the GNU Affero General Public
Expand Down Expand Up @@ -34,7 +34,6 @@
#include "dird/scheduler_system_time_source.h"
#include "dird/scheduler_time_adapter.h"
#include "dird/storage.h"
#include "include/make_unique.h"
#include "lib/parse_conf.h"

#include <chrono>
Expand Down
3 changes: 1 addition & 2 deletions core/src/dird/ua_restore.cc
Expand Up @@ -3,7 +3,7 @@
Copyright (C) 2002-2011 Free Software Foundation Europe e.V.
Copyright (C) 2011-2016 Planets Communications B.V.
Copyright (C) 2013-2021 Bareos GmbH & Co. KG
Copyright (C) 2013-2022 Bareos GmbH & Co. KG
This program is Free Software; you can redistribute it and/or
modify it under the terms of version three of the GNU Affero General Public
Expand Down Expand Up @@ -49,7 +49,6 @@
#include "lib/berrno.h"
#include "lib/parse_conf.h"
#include "lib/tree.h"
#include "include/make_unique.h"
#include "include/protocol_types.h"

namespace directordaemon {
Expand Down
4 changes: 1 addition & 3 deletions core/src/dird/ua_status.cc
Expand Up @@ -3,7 +3,7 @@
Copyright (C) 2001-2012 Free Software Foundation Europe e.V.
Copyright (C) 2011-2016 Planets Communications B.V.
Copyright (C) 2013-2021 Bareos GmbH & Co. KG
Copyright (C) 2013-2022 Bareos GmbH & Co. KG
This program is Free Software; you can redistribute it and/or
modify it under the terms of version three of the GNU Affero General Public
Expand Down Expand Up @@ -50,8 +50,6 @@
#include "lib/parse_conf.h"
#include "lib/util.h"

#include "include/make_unique.h"

#include <memory>

#define DEFAULT_STATUS_SCHED_DAYS 7
Expand Down
1 change: 0 additions & 1 deletion core/src/dird/vbackup.cc
Expand Up @@ -50,7 +50,6 @@
#include "dird/vbackup.h"
#include "lib/edit.h"
#include "lib/util.h"
#include "include/make_unique.h"
#include "cats/sql.h"

#include <algorithm>
Expand Down
3 changes: 1 addition & 2 deletions core/src/filed/backup.cc
Expand Up @@ -3,7 +3,7 @@
Copyright (C) 2000-2011 Free Software Foundation Europe e.V.
Copyright (C) 2011-2012 Planets Communications B.V.
Copyright (C) 2013-2020 Bareos GmbH & Co. KG
Copyright (C) 2013-2022 Bareos GmbH & Co. KG
This program is Free Software; you can redistribute it and/or
modify it under the terms of version three of the GNU Affero General Public
Expand Down Expand Up @@ -45,7 +45,6 @@
#include "lib/btimers.h"
#include "lib/parse_conf.h"
#include "lib/util.h"
#include "include/make_unique.h"

namespace filedaemon {

Expand Down
1 change: 0 additions & 1 deletion core/src/filed/dir_cmd.cc
Expand Up @@ -42,7 +42,6 @@
#include "filed/verify.h"
#include "findlib/enable_priv.h"
#include "findlib/shadowing.h"
#include "include/make_unique.h"
#include "lib/berrno.h"
#include "lib/bget_msg.h"
#include "lib/bnet.h"
Expand Down
3 changes: 1 addition & 2 deletions core/src/filed/restore.cc
Expand Up @@ -3,7 +3,7 @@
Copyright (C) 2000-2012 Free Software Foundation Europe e.V.
Copyright (C) 2011-2012 Planets Communications B.V.
Copyright (C) 2013-2021 Bareos GmbH & Co. KG
Copyright (C) 2013-2022 Bareos GmbH & Co. KG
This program is Free Software; you can redistribute it and/or
modify it under the terms of version three of the GNU Affero General Public
Expand Down Expand Up @@ -44,7 +44,6 @@
#include "lib/bsock.h"
#include "lib/edit.h"
#include "lib/parse_conf.h"
#include "include/make_unique.h"

#ifdef HAVE_WIN32
# include "win32/findlib/win32.h"
Expand Down
71 changes: 0 additions & 71 deletions core/src/include/make_unique.h

This file was deleted.

1 change: 0 additions & 1 deletion core/src/lib/bnet_network_dump.cc
Expand Up @@ -22,7 +22,6 @@
#include "include/bareos.h"
#include "bnet_network_dump.h"
#include "bnet_network_dump_private.h"
#include "include/make_unique.h"

std::unique_ptr<BnetDump> BnetDump::Create(std::string own_qualified_name)
{
Expand Down
2 changes: 1 addition & 1 deletion core/src/lib/bnet_network_dump.h
@@ -1,7 +1,7 @@
/*
BAREOS® - Backup Archiving REcovery Open Sourced
Copyright (C) 2019-2019 Bareos GmbH & Co. KG
Copyright (C) 2019-2022 Bareos GmbH & Co. KG
This program is Free Software; you can redistribute it and/or
modify it under the terms of version three of the GNU Affero General Public
Expand Down
2 changes: 1 addition & 1 deletion core/src/lib/bnet_network_dump_private.cc
@@ -1,7 +1,7 @@
/*
BAREOS® - Backup Archiving REcovery Open Sourced
Copyright (C) 2019-2019 Bareos GmbH & Co. KG
Copyright (C) 2019-2022 Bareos GmbH & Co. KG
This program is Free Software; you can redistribute it and/or
modify it under the terms of version three of the GNU Affero General Public
Expand Down
3 changes: 1 addition & 2 deletions core/src/lib/configured_tls_policy_getter.cc
Expand Up @@ -3,7 +3,7 @@
Copyright (C) 2000-2010 Free Software Foundation Europe e.V.
Copyright (C) 2011-2012 Planets Communications B.V.
Copyright (C) 2013-2019 Bareos GmbH & Co. KG
Copyright (C) 2013-2022 Bareos GmbH & Co. KG
This program is Free Software; you can redistribute it and/or
modify it under the terms of version three of the GNU Affero General Public
Expand All @@ -28,7 +28,6 @@
#include "lib/ascii_control_characters.h"
#include "lib/bstringlist.h"
#include "lib/qualified_resource_name_type_converter.h"
#include "include/make_unique.h"

#include <algorithm>

Expand Down
2 changes: 1 addition & 1 deletion core/src/lib/connection_pool.h
Expand Up @@ -26,7 +26,7 @@
*/

#ifndef BAREOS_LIB_CONNECTION_POOL_H_
# define BAREOS_LIB_CONNECTION_POOL_H_
#define BAREOS_LIB_CONNECTION_POOL_H_

template <typename T> class alist;
class BareosSocket;
Expand Down
3 changes: 1 addition & 2 deletions core/src/lib/thread_list.cc
@@ -1,7 +1,7 @@
/*
BAREOS® - Backup Archiving REcovery Open Sourced
Copyright (C) 2019-2019 Bareos GmbH & Co. KG
Copyright (C) 2019-2022 Bareos GmbH & Co. KG
This program is Free Software; you can redistribute it and/or
modify it under the terms of version three of the GNU Affero General Public
Expand All @@ -21,7 +21,6 @@

#include "include/bareos.h"
#include "include/jcr.h"
#include "include/make_unique.h"
#include "lib/berrno.h"
#include "lib/bsock.h"
#include "lib/thread_list.h"
Expand Down

0 comments on commit 4962da4

Please sign in to comment.