8210279: (bf) Remove unused package private method java.nio.Buffer.truncate()
authorbpb
Tue, 04 Sep 2018 09:07:06 -0700
changeset 51630 25606a4e6693
parent 51629 78c7f0c7827d
child 51631 f9773a631272
8210279: (bf) Remove unused package private method java.nio.Buffer.truncate() Reviewed-by: alanb
src/java.base/share/classes/java/nio/Buffer.java
--- a/src/java.base/share/classes/java/nio/Buffer.java	Tue Sep 04 11:46:23 2018 -0400
+++ b/src/java.base/share/classes/java/nio/Buffer.java	Tue Sep 04 09:07:06 2018 -0700
@@ -693,13 +693,6 @@
         return mark;
     }
 
-    final void truncate() {                             // package-private
-        mark = -1;
-        position = 0;
-        limit = 0;
-        capacity = 0;
-    }
-
     final void discardMark() {                          // package-private
         mark = -1;
     }