Removed unneeded function

This commit is contained in:
Alexey Romanov
2012-02-22 13:32:53 +04:00
parent 8aadf7adc4
commit 9297d7268e

View File

@@ -46,11 +46,11 @@ static void fprint_dataset(FILE* log, ErlDrvTermData* dataset, int term_count);
#endif
// required because driver_free(_binary) are macros in Windows
void driver_free_fun(void *ptr) {
static void driver_free_fun(void *ptr) {
driver_free(ptr);
}
void driver_free_binary_fun(void *ptr) {
static void driver_free_binary_fun(void *ptr) {
driver_free_binary((ErlDrvBinary *) ptr);
}
@@ -226,16 +226,6 @@ static inline int output_ok(sqlite3_drv_t *drv) {
return driver_output_term(drv->port, spec, sizeof(spec) / sizeof(spec[0]));
}
static inline int output_done(sqlite3_drv_t *drv) {
// Return {Port, ok}
ErlDrvTermData spec[] = {
ERL_DRV_PORT, driver_mk_port(drv->port),
ERL_DRV_ATOM, drv->atom_done,
ERL_DRV_TUPLE, 2
};
return driver_output_term(drv->port, spec, sizeof(spec) / sizeof(spec[0]));
}
static inline async_sqlite3_command *make_async_command_statement(
sqlite3_drv_t *drv, sqlite3_stmt *statement) {
async_sqlite3_command *result =