From 9b4ad30a7e4dca50bddd7600c93c0e8c908e4c52 Mon Sep 17 00:00:00 2001 From: Stormwind Date: Sat, 25 Apr 2015 22:31:03 +0200 Subject: [PATCH] Delete unnecessary methods The deleted methods does not do what I intended them to do. So I removed them. --- lib/rubella/map.rb | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/lib/rubella/map.rb b/lib/rubella/map.rb index d8fd42a..85f256b 100644 --- a/lib/rubella/map.rb +++ b/lib/rubella/map.rb @@ -27,34 +27,6 @@ module Rubella end - # Creates a heatmap in the on construction given format. The data must be - # in the also on construction given formate. - # - # @param data string The data, which should be used - # @return binaryblob An output representation of the heatmap - def create_from_string data - process @input.string data - end - - # Creates a heatmap in the on construction given format. The data must be - # in the also on construction given formate. - # - # @param file_name string - # @return binaryblob An output representation of the heatmap - def create_from_file file_name - process @input.file file_name - end - - # Processes the creation of the heatmap, after the construction of the input - # object. So the input object is given here as parameter. - # - # @param inpt Input The inputed data - # @return binaryblob An output representation of the heatmap - def process inpt - weight = @weighting.new 10 - @output.new(weight.parse(inpt)).render - end - # Set the input type by the given name # # @param input_name string Name of the input type in CamelCase