lib/ppcurses/actions/GetDataAction.rb in ppcurses-0.0.18 vs lib/ppcurses/actions/GetDataAction.rb in ppcurses-0.0.19

- old
+ new

@@ -82,35 +82,10 @@ @win.attron(color_pair(1)) self.printLine(string) @win.attroff(color_pair(1)) end - def promptToChangeData(preparedSQL) - self.printLine(preparedSQL) - proceed = GetBooleanAction.new("Proceed? ") - proceed.setParentAction(self) - proceed.setWindow(@win) - proceed.execute() - - if proceed.data == "1" then - self.printLine("") - begin - @db.execute preparedSQL - self.printSuccessLine("Execution successful") - rescue SQLite3::Exception => e - self.printErrorLine("Exception occurred") - self.printErrorLine(e.message) - ensure - self.printLine("") - self.printLine("< Press any key to continue > ") - @win.getch() - end - - end - - - end end end