Skip to content

Commit

Permalink
cleanup boost include files
Browse files Browse the repository at this point in the history
  • Loading branch information
ban-nobuhiro committed Dec 18, 2023
1 parent 43bec1c commit 95061f9
Show file tree
Hide file tree
Showing 24 changed files with 23 additions and 30 deletions.
2 changes: 1 addition & 1 deletion include/limestone/api/backup.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <vector>
#include <set>

#include <boost/filesystem/path.hpp>
#include <boost/filesystem.hpp>

#include <limestone/api/log_channel.h>

Expand Down
2 changes: 1 addition & 1 deletion include/limestone/api/backup_detail.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <string_view>
#include <vector>

#include <boost/filesystem/path.hpp>
#include <boost/filesystem.hpp>

#include <limestone/api/epoch_id_type.h>

Expand Down
2 changes: 1 addition & 1 deletion include/limestone/api/configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#include <vector>

#include <boost/filesystem/path.hpp>
#include <boost/filesystem.hpp>

namespace limestone::api {

Expand Down
2 changes: 1 addition & 1 deletion include/limestone/api/cursor.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
#include <memory>
#include <vector>

#include <boost/filesystem/path.hpp>
#include <boost/filesystem.hpp>
#include <boost/filesystem/fstream.hpp>

#include <limestone/api/storage_id_type.h>
#include <limestone/api/large_object_view.h>
Expand Down
2 changes: 1 addition & 1 deletion include/limestone/api/datastore.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <set>
#include <mutex>

#include <boost/filesystem/path.hpp>
#include <boost/filesystem.hpp>

#include <limestone/status.h>
#include <limestone/api/backup.h>
Expand Down
2 changes: 1 addition & 1 deletion include/limestone/api/file_set_entry.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#include <string_view>

#include <boost/filesystem/path.hpp>
#include <boost/filesystem.hpp>


namespace limestone::api {
Expand Down
2 changes: 1 addition & 1 deletion include/limestone/api/large_object_input.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#include <string>

#include <boost/filesystem/path.hpp>
#include <boost/filesystem.hpp>

namespace limestone::api {

Expand Down
3 changes: 1 addition & 2 deletions include/limestone/api/log_channel.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
#include <cstdint>
#include <atomic>

#include <boost/filesystem/path.hpp>
#include <boost/filesystem/fstream.hpp>
#include <boost/filesystem.hpp>

#include <limestone/status.h>
#include <limestone/api/storage_id_type.h>
Expand Down
3 changes: 1 addition & 2 deletions include/limestone/api/snapshot.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
#include <memory>
#include <string_view>

#include <boost/filesystem/path.hpp>
#include <boost/filesystem/fstream.hpp>
#include <boost/filesystem.hpp>

#include <limestone/api/cursor.h>

Expand Down
2 changes: 1 addition & 1 deletion src/limestone/datastore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <iomanip>
#include <stdexcept>

#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/fstream.hpp>

#include <glog/logging.h>
#include <limestone/logging.h>
Expand Down
2 changes: 1 addition & 1 deletion src/limestone/datastore_format.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

#include <boost/filesystem/operations.hpp>
#include <boost/filesystem.hpp>
#include <nlohmann/json.hpp>

#include <glog/logging.h>
Expand Down
1 change: 0 additions & 1 deletion src/limestone/datastore_restore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <boost/filesystem/operations.hpp>

#include <glog/logging.h>
#include <limestone/logging.h>
Expand Down
2 changes: 1 addition & 1 deletion src/limestone/datastore_snapshot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

#include <byteswap.h>
#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/fstream.hpp>
#include <cstdlib>
#include <cstring>
#include <mutex>
Expand Down
2 changes: 2 additions & 0 deletions src/limestone/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

#include <optional>

#include <boost/filesystem.hpp>

#include <limestone/api/datastore.h>

namespace limestone::internal {
Expand Down
3 changes: 1 addition & 2 deletions src/limestone/log_entry.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,14 @@
*/
#pragma once

#include <cassert>
#include <cstdio>
#include <endian.h>
#include <istream>
#include <string>
#include <string_view>
#include <exception>

#include <boost/filesystem/path.hpp>
#include <boost/filesystem/fstream.hpp>
#include <glog/logging.h>

#include <limestone/api/storage_id_type.h>
Expand Down
2 changes: 0 additions & 2 deletions src/limestone/snapshot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
#include <limestone/logging.h>
#include "logging_helper.h"

#include <boost/filesystem.hpp>

namespace limestone::api { // FIXME fill implementation

snapshot::snapshot(const boost::filesystem::path& location) noexcept : dir_(location / boost::filesystem::path(std::string(subdirectory_name_))) {
Expand Down
3 changes: 2 additions & 1 deletion src/limestone/sortdb_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// #include <boost/filesystem/operations.hpp>

#include <boost/filesystem.hpp>

#ifdef SORT_METHOD_USE_ROCKSDB
#include <rocksdb/db.h>
Expand Down
3 changes: 1 addition & 2 deletions test/limestone/log/durable_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
#include <sstream>
#include <limestone/logging.h>

#include <boost/filesystem/path.hpp>
#include <boost/filesystem/fstream.hpp>
#include <boost/filesystem.hpp>

#include "internal.h"
#include "log_entry.h"
Expand Down
3 changes: 1 addition & 2 deletions test/limestone/log/log_dir_test.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@

#include <boost/filesystem/path.hpp>
#include <boost/filesystem/fstream.hpp>
#include <boost/filesystem.hpp>

#include <limestone/logging.h>

Expand Down
2 changes: 1 addition & 1 deletion test/limestone/log/log_entry_4_LevelDB_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <unistd.h>
#include "test_root.h"

#include <boost/filesystem/path.hpp>
#include <boost/filesystem.hpp>
#include <boost/filesystem/fstream.hpp>

#include "log_entry.h"
Expand Down
2 changes: 1 addition & 1 deletion test/limestone/log/log_entry_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <unistd.h>
#include "test_root.h"

#include <boost/filesystem/path.hpp>
#include <boost/filesystem.hpp>
#include <boost/filesystem/fstream.hpp>

#include "log_entry.h"
Expand Down
2 changes: 1 addition & 1 deletion test/limestone/log/log_entry_type_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <unistd.h>
#include "test_root.h"

#include <boost/filesystem/path.hpp>
#include <boost/filesystem.hpp>
#include <boost/filesystem/fstream.hpp>

#include "log_entry.h"
Expand Down
2 changes: 1 addition & 1 deletion test/limestone/log/rotate_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include <sstream>
#include <limestone/logging.h>

#include <boost/filesystem/path.hpp>
#include <boost/filesystem.hpp>
#include <boost/filesystem/fstream.hpp>

#include "internal.h"
Expand Down
2 changes: 0 additions & 2 deletions test/test_root.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
#include <gtest/gtest.h>
#include <glog/logging.h>

#include <boost/filesystem/path.hpp>

#include <limestone/api/datastore.h>
#include <limestone/api/configuration.h>

Expand Down

0 comments on commit 95061f9

Please sign in to comment.