lib/learn_open/environments/base_environment.rb in learn-open-1.2.26 vs lib/learn_open/environments/base_environment.rb in learn-open-1.2.27
- old
+ new
@@ -63,18 +63,8 @@
def notify_of_completion
logger.log("Done.")
io.puts "Done."
end
-
- def warn_if_necessary(lesson)
- return unless lesson.later_lesson
-
- io.puts 'WARNING: You are attempting to open a lesson that is beyond your current lesson.'
- io.print 'Are you sure you want to continue? [Y/n]: '
-
- warn_response = io.gets.chomp.downcase
- exit if !['yes', 'y'].include?(warn_response)
- end
end
end
end