Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jsexplain
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Verified Software
jsexplain
Commits
c6b263c3
Commit
c6b263c3
authored
9 years ago
by
Thomas Wood
Browse files
Options
Downloads
Patches
Plain Diff
Remove dead code
parent
973d65c1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
generator/js_of_ast.ml
+0
-39
0 additions, 39 deletions
generator/js_of_ast.ml
with
0 additions
and
39 deletions
generator/js_of_ast.ml
+
0
−
39
View file @
c6b263c3
open
Asttypes
open
Attributes
open
Env
open
Format
open
Lexing
open
Log
open
Longident
open
Misc
open
Mytools
open
Parse_type
...
...
@@ -12,8 +8,6 @@ open Print_type
open
Types
open
Typedtree
let
hashtbl_size
=
256
let
module_list
=
ref
[]
let
module_code
=
ref
[]
let
module_created
=
ref
[]
...
...
@@ -23,39 +17,6 @@ module L = Logged (Token_generator) (struct let size = 256 end)
* Debug-purpose functions
*)
let
env_diff_names
env1
env2
=
List
.
map
Ident
.
unique_name
(
Env
.
diff
env1
env2
)
(**
* Functions to work with environment
**)
let
rec
list_of_ident_from_summary
=
function
|
Env_empty
->
[]
|
Env_value
(
sum
,
id
,
vd
)
->
id
::
list_of_ident_from_summary
sum
|
Env_type
(
sum
,_,_
)
|
Env_extension
(
sum
,_,_
)
|
Env_module
(
sum
,_,_
)
|
Env_modtype
(
sum
,_,_
)
|
Env_class
(
sum
,_,_
)
|
Env_cltype
(
sum
,_,_
)
|
Env_open
(
sum
,_
)
|
Env_functor_arg
(
sum
,_
)
->
list_of_ident_from_summary
sum
let
print_name_list
l
=
let
rec
aux
=
function
|
[]
->
""
|
x
::
[]
->
x
|
x
::
xs
->
x
^
", "
^
aux
xs
in
"[ "
^
aux
l
^
" ]"
let
print_env
env
=
let
idents
=
env
|>
Env
.
summary
|>
list_of_ident_from_summary
|>
List
.
map
Ident
.
name
in
Printf
.
printf
"env: %s
\n
"
(
print_name_list
idents
)
(**
* Useful functions (Warning: shadows `show_list' from Mytools)
*)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment