Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
Magisk
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Magisk
Commits
5d357bc4
Commit
5d357bc4
authored
May 27, 2019
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused function
parent
6a54672b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
5 deletions
+0
-5
file.cpp
native/jni/utils/file.cpp
+0
-4
utils.h
native/jni/utils/include/utils.h
+0
-1
No files found.
native/jni/utils/file.cpp
View file @
5d357bc4
...
...
@@ -331,10 +331,6 @@ void *__mmap(const char *filename, size_t *size, bool rw) {
return
buf
;
}
void
mmap_ro
(
const
char
*
filename
,
void
**
buf
,
size_t
*
size
)
{
*
buf
=
__mmap
(
filename
,
size
,
false
);
}
void
fd_full_read
(
int
fd
,
void
**
buf
,
size_t
*
size
)
{
*
size
=
lseek
(
fd
,
0
,
SEEK_END
);
lseek
(
fd
,
0
,
SEEK_SET
);
...
...
native/jni/utils/include/utils.h
View file @
5d357bc4
...
...
@@ -118,7 +118,6 @@ int setattrat(int dirfd, const char *name, struct file_attr *a);
int
fsetattr
(
int
fd
,
struct
file_attr
*
a
);
void
fclone_attr
(
int
sourcefd
,
int
targetfd
);
void
clone_attr
(
const
char
*
source
,
const
char
*
target
);
void
mmap_ro
(
const
char
*
filename
,
void
**
buf
,
size_t
*
size
);
void
fd_full_read
(
int
fd
,
void
**
buf
,
size_t
*
size
);
void
full_read
(
const
char
*
filename
,
void
**
buf
,
size_t
*
size
);
void
write_zero
(
int
fd
,
size_t
size
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment