Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
removal of unused setLob functions
Browse files Browse the repository at this point in the history
  • Loading branch information
loveridge committed Aug 22, 2015
1 parent 234d194 commit 9d3ed71
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 36 deletions.
2 changes: 0 additions & 2 deletions lib/src/occi_extension.cc
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ FunctionLookup function_list[] = {
{"OracleStatement_executeUpdate", OracleStatement_executeUpdate},
{"OracleStatement_getResultSet", OracleStatement_getResultSet},
{"OracleStatement_status", OracleStatement_status},
{"OracleStatement_setBlob", OracleStatement_setBlob},
{"OracleStatement_setClob", OracleStatement_setClob},
{"OracleStatement_setBytes", OracleStatement_setBytes},
{"OracleStatement_setString", OracleStatement_setString},
{"OracleStatement_setNum", OracleStatement_setNum},
Expand Down
4 changes: 0 additions & 4 deletions lib/src/occi_extension.dart
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,6 @@ class Statement {

StatementStatus status() => StatementStatus.values[_status()];

void setBlob(int index, Blob blob) native 'OracleStatement_setBlob';

void setClob(int index, Clob clob) native 'OracleStatement_setClob';

void setBytes(int index, List<int> bytes) native 'OracleStatement_setBytes';

void setString(int index, String string) native 'OracleStatement_setString';
Expand Down
28 changes: 0 additions & 28 deletions lib/src/statement.cc
Original file line number Diff line number Diff line change
Expand Up @@ -132,34 +132,6 @@ void OracleStatement_getResultSet(Dart_NativeArguments args) {
Dart_ExitScope();
}

void OracleStatement_setBlob(Dart_NativeArguments args) {
Dart_EnterScope();

auto statement = getThis<occi::Statement>(args);
int64_t index = getDartArg<int64_t>(args, 1);
auto blob = getPeer<occi::Blob>(args, 2);

try {
statement->setBlob(index, *blob);
} CATCH_SQL_EXCEPTION

Dart_ExitScope();
}

void OracleStatement_setClob(Dart_NativeArguments args) {
Dart_EnterScope();

auto statement = getThis<occi::Statement>(args);
int64_t index = getDartArg<int64_t>(args, 1);
auto blob = getPeer<occi::Clob>(args, 2);

try {
statement->setClob(index, *blob);
} CATCH_SQL_EXCEPTION

Dart_ExitScope();
}

void OracleStatement_setBytes(Dart_NativeArguments args) {

}
Expand Down
2 changes: 0 additions & 2 deletions lib/src/statement.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ void OracleStatement_executeQuery(Dart_NativeArguments arguments);
void OracleStatement_executeUpdate(Dart_NativeArguments arguments);
void OracleStatement_getResultSet(Dart_NativeArguments arguments);
void OracleStatement_status(Dart_NativeArguments arguments);
void OracleStatement_setBlob(Dart_NativeArguments arguments);
void OracleStatement_setClob(Dart_NativeArguments arguments);
void OracleStatement_setBytes(Dart_NativeArguments arguments);
void OracleStatement_setString(Dart_NativeArguments arguments);
void OracleStatement_setNum(Dart_NativeArguments arguments);
Expand Down

0 comments on commit 9d3ed71

Please sign in to comment.