Skip to content

Commit fb85960

Browse files
committed
8271149: remove unreferenced functions from EncodingSupport_md.c
Reviewed-by: alanb
1 parent 8156ff6 commit fb85960

File tree

1 file changed

+1
-27
lines changed

1 file changed

+1
-27
lines changed

src/java.instrument/unix/native/libinstrument/EncodingSupport_md.c

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2004, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2004, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -103,22 +103,6 @@ utfInitialize(void)
103103
}
104104
}
105105

106-
/*
107-
* Terminate all utf processing
108-
*/
109-
static void
110-
utfTerminate(void)
111-
{
112-
if ( iconvFromPlatform!=(iconv_t)-1 ) {
113-
(void)iconv_close(iconvFromPlatform);
114-
}
115-
if ( iconvToPlatform!=(iconv_t)-1 ) {
116-
(void)iconv_close(iconvToPlatform);
117-
}
118-
iconvToPlatform = (iconv_t)-1;
119-
iconvFromPlatform = (iconv_t)-1;
120-
}
121-
122106
/*
123107
* Do iconv() conversion.
124108
* Returns length or -1 if output overflows.
@@ -176,16 +160,6 @@ utf8ToPlatform(char *utf8, int len, char *output, int outputMaxLen)
176160
return iconvConvert(iconvToPlatform, utf8, len, output, outputMaxLen);
177161
}
178162

179-
/*
180-
* Convert Platform Encoding to UTF-8.
181-
* Returns length or -1 if output overflows.
182-
*/
183-
static int
184-
platformToUtf8(char *str, int len, char *output, int outputMaxLen)
185-
{
186-
return iconvConvert(iconvFromPlatform, str, len, output, outputMaxLen);
187-
}
188-
189163
int
190164
convertUft8ToPlatformString(char* utf8_str, int utf8_len, char* platform_str, int platform_len) {
191165
if (iconvToPlatform == (iconv_t)-1) {

0 commit comments

Comments
 (0)