lib/appmap/util.rb in appmap-0.75.0 vs lib/appmap/util.rb in appmap-0.76.0
- old
+ new
@@ -19,17 +19,9 @@
MAGENTA = "\e[35m"
CYAN = "\e[36m"
WHITE = "\e[37m"
class << self
- def class_from_string(fq_class, must: true)
- fq_class.split('::').inject(Object) do |mod, class_name|
- mod.const_get(class_name)
- end
- rescue NameError
- raise if must
- end
-
def parse_function_name(name)
package_tokens = name.split('/')
class_and_name = package_tokens.pop
class_name, function_name, static = class_and_name.include?('.') ? class_and_name.split('.', 2) + [ true ] : class_and_name.split('#', 2) + [ false ]