Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dhtnet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
dhtnet
Commits
6eb34542
Commit
6eb34542
authored
4 weeks ago
by
Adrien Béraud
Committed by
Adrien Béraud
3 weeks ago
Browse files
Options
Downloads
Patches
Plain Diff
fileutils: remove unused code
Change-Id: I48010c00de05d3b878a4a27256bb8b2da8a869c1
parent
f1082445
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/fileutils.cpp
+0
-40
0 additions, 40 deletions
src/fileutils.cpp
with
0 additions
and
40 deletions
src/fileutils.cpp
+
0
−
40
View file @
6eb34542
...
...
@@ -358,46 +358,6 @@ removeAll(const std::filesystem::path& path, bool erase)
}
}
void
openStream
(
std
::
ifstream
&
file
,
const
std
::
filesystem
::
path
&
path
,
std
::
ios_base
::
openmode
mode
)
{
#ifdef _WIN32
file
.
open
(
dhtnet
::
to_wstring
(
path
.
string
()),
mode
);
#else
file
.
open
(
path
,
mode
);
#endif
}
void
openStream
(
std
::
ofstream
&
file
,
const
std
::
filesystem
::
path
&
path
,
std
::
ios_base
::
openmode
mode
)
{
#ifdef _WIN32
file
.
open
(
dhtnet
::
to_wstring
(
path
.
string
()),
mode
);
#else
file
.
open
(
path
,
mode
);
#endif
}
std
::
ifstream
ifstream
(
const
std
::
filesystem
::
path
&
path
,
std
::
ios_base
::
openmode
mode
)
{
#ifdef _WIN32
return
std
::
ifstream
(
dhtnet
::
to_wstring
(
path
.
string
()),
mode
);
#else
return
std
::
ifstream
(
path
,
mode
);
#endif
}
std
::
ofstream
ofstream
(
const
std
::
filesystem
::
path
&
path
,
std
::
ios_base
::
openmode
mode
)
{
#ifdef _WIN32
return
std
::
ofstream
(
dhtnet
::
to_wstring
(
path
.
string
()),
mode
);
#else
return
std
::
ofstream
(
path
,
mode
);
#endif
}
int
accessFile
(
const
std
::
filesystem
::
path
&
file
,
int
mode
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment