Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
35c97886
authored
Feb 05, 2022
by
Dustin
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Remove method I didn't end up needing
parent
193ece6d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
18 deletions
library/common/src/main/java/com/google/android/exoplayer2/util/ParsableByteArray.java
library/common/src/main/java/com/google/android/exoplayer2/util/ParsableByteArray.java
View file @
35c97886
...
@@ -565,22 +565,4 @@ public final class ParsableByteArray {
...
@@ -565,22 +565,4 @@ public final class ParsableByteArray {
position
+=
length
;
position
+=
length
;
return
value
;
return
value
;
}
}
/**
* The data from the end of the buffer is copied to the front
* The limit() because the bytesLeft() and position is zero
*/
public
void
compact
()
{
if
(
bytesLeft
()
==
0
)
{
limit
=
0
;
}
else
{
final
ByteBuffer
byteBuffer
=
ByteBuffer
.
wrap
(
data
);
byteBuffer
.
limit
(
limit
);
byteBuffer
.
position
(
position
);
byteBuffer
.
compact
();
byteBuffer
.
flip
();
limit
=
byteBuffer
.
limit
();
}
position
=
0
;
}
}
}
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