@@ -187,7 +187,6 @@ static char *convert_byte_value_format(char value);
187187static void append_label_id_map (struct cb_label * label );
188188static void create_label_id_map (struct cb_program * prog );
189189static void destroy_label_id_map (void );
190- static void joutput_edit_code_command (const char * target );
191190
192191static void joutput_label_variable (struct cb_label * label );
193192static void joutput_label_variable_name (char * s , int key ,
@@ -675,35 +674,6 @@ static void joutput_local(const char *fmt, ...) {
675674 }
676675}
677676
678- static void joutput_edit_code_command (const char * target ) {
679- if (!edit_code_command_is_set ) {
680- return ;
681- }
682-
683- char command [BUF_SIZE ];
684- char buf [BUF_SIZE ];
685- sprintf (command , "%s --target=%s" , edit_code_command , target );
686-
687- #ifdef _WIN32
688- FILE * fp = _popen (command , "r" );
689- #else
690- FILE * fp = popen (command , "r" );
691- #endif
692- if (fp == NULL ) {
693- return ;
694- }
695- memset (buf , 0 , BUF_SIZE );
696-
697- while (fgets (buf , BUF_SIZE , fp ) != NULL ) {
698- joutput ("%s" , buf );
699- }
700- #ifdef _WIN32
701- _pclose (fp );
702- #else
703- pclose (fp );
704- #endif
705- }
706-
707677/*
708678 * Field
709679 */
@@ -6082,9 +6052,6 @@ void codegen(struct cb_program *prog, const int nested, char **program_id_list,
60826052 if (cb_java_package_name ) {
60836053 joutput_line ("package %s;\n" , cb_java_package_name );
60846054 }
6085- if (edit_code_command_is_set ) {
6086- joutput_edit_code_command ("file-header" );
6087- }
60886055
60896056 joutput_line ("import java.io.UnsupportedEncodingException;" );
60906057 joutput_line ("import jp.osscons.opensourcecobol.libcobj.*;" );
@@ -6113,17 +6080,7 @@ void codegen(struct cb_program *prog, const int nested, char **program_id_list,
61136080 }
61146081 }*/
61156082
6116- if (edit_code_command_is_set ) {
6117- joutput_edit_code_command ("main-class-annotation" );
6118- }
6119- if (edit_code_command_is_set ) {
6120- joutput ("public class %s implements CobolRunnable, " , prog -> program_id );
6121- joutput_edit_code_command ("main-class-implements" );
6122- joutput (" {\n" );
6123- } else {
6124- joutput_line ("public class %s implements CobolRunnable {" ,
6125- prog -> program_id );
6126- }
6083+ joutput_line ("public class %s implements CobolRunnable {" , prog -> program_id );
61276084 joutput_indent_level += 2 ;
61286085 joutput ("\n" );
61296086
@@ -6135,9 +6092,6 @@ void codegen(struct cb_program *prog, const int nested, char **program_id_list,
61356092 // output_storage ("union cob_call_union\tcob_unifunc;\n\n");
61366093 joutput_line ("private CobolRunnable cob_unifunc;\n" );
61376094
6138- if (edit_code_command_is_set ) {
6139- joutput_edit_code_command ("main-class-contents" );
6140- }
61416095 joutput ("\n" );
61426096
61436097 joutput_line ("@Override" );
0 commit comments