Skip to content

Commit

Permalink
[cleanup] xhtml.opa: remove useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
OpaOnWindowsNow committed Feb 14, 2012
1 parent 07dc2c8 commit c90b937
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions stdlib/core/xhtml/xhtml.opa
Expand Up @@ -482,9 +482,9 @@ Xml =
| { content_unsafe=_ }
| { xml_dialect=_ } -> fun(elt)
| { ~fragment } -> {fragment = List.map(aux, fragment) }
| { ~tag; ~namespace; ~args; ~content; ~specific_attributes } ->
| { ~content ... } as r ->
content = List.map(aux, content) ;
fun({ ~tag; ~namespace; ~args; content=content; ~specific_attributes } : xml)
fun({r with content=content} <: xml )
aux(element)

}}
Expand Down Expand Up @@ -733,9 +733,6 @@ Xhtml =
| {some = ~{js_code_unsafe html_code_unsafe}} ->
do Buf.add(html_buffer,html_code_unsafe)
Buf.add(js_buffer,js_code_unsafe)
| _ ->
Log.error("Xhtml.to_serialize_string","Incorrect XHTML extensions")
//This should never happen, by type guarantees -- however, I've spotted a [Magic.id] somewhere in this file
end
| ~{ namespace tag args content specific_attributes } ->

Expand Down Expand Up @@ -828,9 +825,6 @@ Xhtml =
do Buf.add(js_buffer,"\n.css(\{ ")
iter_tell_me_if_i_am_last((~{name value}, last ->
do Buf.add(js_buffer,"'")



do Buf.add(js_buffer,name)
do Buf.add(js_buffer,"': '")
do Buf.add(js_buffer,value)
Expand Down

0 comments on commit c90b937

Please sign in to comment.