Skip to content

Commit

Permalink
Removed string_file.hpp that was deprecated in 1.79.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lastique committed Oct 4, 2023
1 parent 4c621f1 commit be82eff
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 143 deletions.
10 changes: 0 additions & 10 deletions doc/deprecated.html
Original file line number Diff line number Diff line change
Expand Up @@ -395,16 +395,6 @@ <h2><a name="Deprecated-names">Deprecated names</a> and features</h2>
The workaround is to include the new headers or </i><code>filesystem.hpp</code><i>. The new headers are still included by </i><code>operations.hpp</code><i> if
</i><code>BOOST_FILESYSTEM_NO_DEPRECATED</code><i> is not defined.</i></td>
</tr>
<tr>
<td style="font-size: 10pt" valign="top">
<code>string_file.hpp</code></td>
<td style="font-size: 10pt" valign="top">
The header provides utility functions for loading and saving a string to/from file.</td>
<td style="font-size: 10pt" valign="top">
&#10004;</td>
<td style="font-size: 10pt" valign="top">
<i>The header is deprecated, use a different implementation of these functions. Unavailable if </i><code>BOOST_FILESYSTEM_NO_DEPRECATED</code><i> is defined and will be permanently removed in a future release.</i></td>
</tr>
<tr>
<td style="font-size: 10pt" valign="top">
<code>path_traits.hpp</code></td>
Expand Down
1 change: 1 addition & 0 deletions doc/release_history.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ <h2>1.84.0</h2>
<li>Fixed that some <code>directory_entry</code> observers taking <code>error_code&amp; ec</code> argument did not clear the error code on successful return. (<a href="https://github.com/boostorg/filesystem/issues/291">#291</a>)</li>
<li>On Windows, improved robustness of date and time conversion and added support for dates before January 1, 1970. (<a href="https://github.com/boostorg/filesystem/issues/293">#293</a>)</li>
<li>Removed support for Windows CE that was deprecated since Boost.Filesystem 1.79.0.</li>
<li>Removed <code>boost/filesystem/string_file.hpp</code> header. The header was deprecated since Boost.Filesystem 1.79.0.</li>
</ul>

<h2>1.83.0</h2>
Expand Down
1 change: 0 additions & 1 deletion example/Jamfile.v2
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ exe tut5 : tut5.cpp ;
exe path_info : path_info.cpp : <cxxstd>11 ;
exe file_status : file_status.cpp ;
exe file_size : file_size.cpp ;
exe directory_symlink_parent_resolution : directory_symlink_parent_resolution.cpp ;
exe simple_ls : simple_ls.cpp ;

install tut1-copy : tut1 : <location>. ;
Expand Down
42 changes: 0 additions & 42 deletions example/directory_symlink_parent_resolution.cpp

This file was deleted.

3 changes: 0 additions & 3 deletions include/boost/filesystem.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,5 @@
#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/file_status.hpp>
#include <boost/filesystem/convenience.hpp>
#if defined(BOOST_FILESYSTEM_DEPRECATED)
#include <boost/filesystem/string_file.hpp>
#endif

#endif // BOOST_FILESYSTEM_FILESYSTEM_HPP
70 changes: 0 additions & 70 deletions include/boost/filesystem/string_file.hpp

This file was deleted.

17 changes: 0 additions & 17 deletions test/deprecated_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#define BOOST_FILESYSTEM_ALLOW_DEPRECATED

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

#include <list>
#include <vector>
Expand Down Expand Up @@ -211,21 +210,6 @@ void path_rename_test()
}
}

// string_file_tests ---------------------------------------------------------------//

void string_file_tests(const fs::path& temp_dir)
{
std::cout << "string_file_tests..." << std::endl;
std::string contents("0123456789");
fs::path p(temp_dir / "string_file");
save_string_file(p, contents);
save_string_file(p, contents);
BOOST_TEST_EQ(file_size(p), 10u);
std::string round_trip;
load_string_file(p, round_trip);
BOOST_TEST_EQ(contents, round_trip);
}

} // unnamed namespace

//--------------------------------------------------------------------------------------//
Expand Down Expand Up @@ -295,7 +279,6 @@ int cpp_main(int /*argc*/, char* /*argv*/[])
path_container_ctor_test();
path_rename_test();
normalize_test();
string_file_tests(temp_dir);

BOOST_TEST(fs::path("foo/bar").generic() == fs::path("foo/bar"));

Expand Down

0 comments on commit be82eff

Please sign in to comment.