ext/result.cc in swift-0.7.2 vs ext/result.cc in swift-0.8.0

- old
+ new

@@ -12,14 +12,11 @@ rb_gc_mark(handle->adapter); } void result_free(ResultWrapper *handle) { if (handle) { - if (handle->free) { - handle->result->cleanup(); - delete handle->result; - } + if (handle->free) delete handle->result; delete handle; } } VALUE result_alloc(VALUE klass) { @@ -97,18 +94,10 @@ CATCH_DBI_EXCEPTIONS(); return Qnil; } -static VALUE result_finish(VALUE self) { - dbi::AbstractResult *result = result_handle(self); - try { - result->finish(); - } - CATCH_DBI_EXCEPTIONS(); -} - // Calculates local offset at a given time, including dst. int64_t client_tzoffset(int64_t local, int isdst) { struct tm tm; gmtime_r((const time_t*)&local, &tm); // TODO: This won't work in Lord Howe Island, Australia which uses half hour shift. @@ -294,10 +283,9 @@ rb_include_module(cSwiftResult, CONST_GET(rb_mKernel, "Enumerable")); rb_define_method(cSwiftResult, "clone", RUBY_METHOD_FUNC(result_clone), 0); rb_define_method(cSwiftResult, "dup", RUBY_METHOD_FUNC(result_dup), 0); rb_define_method(cSwiftResult, "each", RUBY_METHOD_FUNC(result_each), 0); - rb_define_method(cSwiftResult, "finish", RUBY_METHOD_FUNC(result_finish), 0); rb_define_method(cSwiftResult, "insert_id", RUBY_METHOD_FUNC(result_insert_id), 0); rb_define_method(cSwiftResult, "rows", RUBY_METHOD_FUNC(result_rows), 0); rb_define_method(cSwiftResult, "columns", RUBY_METHOD_FUNC(result_columns), 0); rb_define_method(cSwiftResult, "fields", RUBY_METHOD_FUNC(result_fields), 0); }