Skip to content

Commit

Permalink
remove useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdanRada committed Dec 2, 2013
1 parent 132d1c3 commit 293ca6c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
10 changes: 0 additions & 10 deletions app/helpers/washout_builder_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ def get_complex_types(map)
defined.concat(nested)
end
end
defined << {:class =>"ValidationErrors", :obj => nil} unless get_fault_types_names(map).blank?
defined.sort_by { |hash| hash[:class].downcase }.uniq unless defined.blank?
end

Expand All @@ -66,16 +65,7 @@ def get_soap_action_names(map)



def create_html_complex_type_validation_errors(xml)
xml.a( "name" => "ValidationErrors") { }
xml.h3 "ValidationErrors"

xml.ul("class" => "pre") {
xml.li { |pre| pre << "<span class='blue'>string</span>&nbsp;<span class='bold'>related</span>" }
xml.li { |pre| pre << "<span class='blue'>string</span>&nbsp;<span class='bold'>message</span>" }
xml.li { |pre| pre << "<span class='blue'>Array of string</span>&nbsp;<span class='bold'>arguments</span>" }
}
end



Expand Down
1 change: 0 additions & 1 deletion app/views/wash_with_html/doc.builder
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ xml.html( "xmlns" => "http://www.w3.org/1999/xhtml" ) {


unless @fault_types.blank?
create_html_complex_type_validation_errors(xml)
xml.h2 "Fault types:"
create_html_fault_types_details(xml, @map)
end
Expand Down
2 changes: 1 addition & 1 deletion lib/washout_builder/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module WashoutBuilder
VERSION = "0.3.9"
VERSION = "0.4.0"
end

0 comments on commit 293ca6c

Please sign in to comment.