Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
clean-compiler-and-rts
compiler
Commits
2903b018
Commit
2903b018
authored
Apr 09, 2018
by
John van Groningen
Browse files
remove unused function ListTypes
parent
a76d7fa0
Changes
3
Hide whitespace changes
Inline
Side-by-side
backendC/CleanCompilerSources/codegen.c
View file @
2903b018
...
...
@@ -1179,8 +1179,6 @@ void CodeGeneration (ImpMod imod, char *fname)
}
ExitOnInterrupt
();
ListTypes
(
imod
);
ExitOnInterrupt
();
#if 0
PrintRules (imod->im_rules);
#endif
...
...
backendC/CleanCompilerSources/typeconv.h
View file @
2903b018
/*
Version 1.0 25/04/1994
Author: Sjaak Smetsers
*/
extern
void
PrintType
(
SymbDef
tdef
,
TypeAlts
type
);
extern
void
ListTypes
(
ImpMod
imod
);
extern
void
InitARC_Info
(
void
);
extern
void
PrintTypeClass
(
SymbDef
class_def
,
File
file
);
backendC/CleanCompilerSources/typeconv_2.c
View file @
2903b018
...
...
@@ -473,21 +473,6 @@ void PrintType (SymbDef tdef, TypeAlts type)
FPutS
(
";
\n
"
,
StdListTypes
);
}
/* PrintType */
void
ListTypes
(
ImpMod
imod
)
{
if
(
DoListAllTypes
)
{
ImpRules
irule
;
for
(
irule
=
imod
->
im_rules
;
irule
;
irule
=
irule
->
rule_next
)
{
SymbDef
imp_sdef
=
irule
->
rule_root
->
node_symbol
->
symb_def
;
#ifdef CLEAN2
if
(
strncmp
(
imp_sdef
->
sdef_ident
->
ident_name
,
"_dictionary"
,
11
)
!=
0
||
imp_sdef
->
sdef_isused
)
#endif
PrintType
(
imp_sdef
,
irule
->
rule_type
);
}
}
}
/* ListTypes */
void
InitARC_Info
(
void
)
{
CurrentARC_Info
=
CompAllocType
(
struct
attr_ref_count_info
);
...
...
Write
Preview
Supports
Markdown
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