Commit 7c28a1db authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

msi: Get rid of the get_row() view operation.

parent f45a7b04
......@@ -61,15 +61,6 @@ static UINT ALTER_fetch_stream( struct tagMSIVIEW *view, UINT row, UINT col, ISt
return ERROR_FUNCTION_FAILED;
}
static UINT ALTER_get_row( struct tagMSIVIEW *view, UINT row, MSIRECORD **rec )
{
MSIALTERVIEW *av = (MSIALTERVIEW*)view;
TRACE("%p %d %p\n", av, row, rec );
return av->table->ops->get_row(av->table, row, rec);
}
static UINT ITERATE_columns(MSIRECORD *row, LPVOID param)
{
(*(UINT *)param)++;
......@@ -225,7 +216,6 @@ static const MSIVIEWOPS alter_ops =
{
ALTER_fetch_int,
ALTER_fetch_stream,
ALTER_get_row,
NULL,
NULL,
NULL,
......
......@@ -131,7 +131,6 @@ static const MSIVIEWOPS create_ops =
NULL,
NULL,
NULL,
NULL,
CREATE_execute,
CREATE_close,
CREATE_get_dimensions,
......
......@@ -173,7 +173,6 @@ static const MSIVIEWOPS delete_ops =
NULL,
NULL,
NULL,
NULL,
DELETE_execute,
DELETE_close,
DELETE_get_dimensions,
......
......@@ -256,7 +256,6 @@ static const MSIVIEWOPS distinct_ops =
NULL,
NULL,
NULL,
NULL,
DISTINCT_execute,
DISTINCT_close,
DISTINCT_get_dimensions,
......
......@@ -101,7 +101,6 @@ static const MSIVIEWOPS drop_ops =
NULL,
NULL,
NULL,
NULL,
DROP_execute,
DROP_close,
DROP_get_dimensions,
......
......@@ -327,7 +327,6 @@ static const MSIVIEWOPS insert_ops =
NULL,
NULL,
NULL,
NULL,
INSERT_execute,
INSERT_close,
INSERT_get_dimensions,
......
......@@ -243,12 +243,6 @@ typedef struct tagMSIVIEWOPS
UINT (*fetch_stream)( struct tagMSIVIEW *view, UINT row, UINT col, IStream **stm );
/*
* get_row - gets values from a row
*
*/
UINT (*get_row)( struct tagMSIVIEW *view, UINT row, MSIRECORD **rec );
/*
* set_int - set the integer value at {row, col}
* This function has undefined behaviour if the column does not contain
* integers.
......
......@@ -90,18 +90,6 @@ static UINT SELECT_fetch_stream( struct tagMSIVIEW *view, UINT row, UINT col, IS
return sv->table->ops->fetch_stream( sv->table, row, col, stm );
}
static UINT SELECT_get_row( struct tagMSIVIEW *view, UINT row, MSIRECORD **rec )
{
MSISELECTVIEW *sv = (MSISELECTVIEW *)view;
TRACE("%p %d %p\n", sv, row, rec );
if( !sv->table )
return ERROR_FUNCTION_FAILED;
return msi_view_get_row(sv->db, view, row, rec);
}
static UINT SELECT_set_row( struct tagMSIVIEW *view, UINT row, MSIRECORD *rec, UINT mask )
{
MSISELECTVIEW *sv = (MSISELECTVIEW*)view;
......@@ -325,7 +313,6 @@ static const MSIVIEWOPS select_ops =
{
SELECT_fetch_int,
SELECT_fetch_stream,
SELECT_get_row,
NULL,
NULL,
SELECT_set_row,
......
......@@ -115,15 +115,6 @@ static UINT STORAGES_fetch_stream(struct tagMSIVIEW *view, UINT row, UINT col, I
return ERROR_INVALID_DATA;
}
static UINT STORAGES_get_row( struct tagMSIVIEW *view, UINT row, MSIRECORD **rec )
{
MSISTORAGESVIEW *sv = (MSISTORAGESVIEW *)view;
FIXME("%p %d %p\n", sv, row, rec);
return ERROR_CALL_NOT_IMPLEMENTED;
}
static UINT STORAGES_set_string( struct tagMSIVIEW *view, UINT row, UINT col, const WCHAR *val, int len )
{
ERR("Cannot modify primary key.\n");
......@@ -425,7 +416,6 @@ static const MSIVIEWOPS storages_ops =
{
STORAGES_fetch_int,
STORAGES_fetch_stream,
STORAGES_get_row,
NULL,
STORAGES_set_string,
STORAGES_set_row,
......
......@@ -110,15 +110,6 @@ static UINT STREAMS_set_string( struct tagMSIVIEW *view, UINT row, UINT col, con
return ERROR_FUNCTION_FAILED;
}
static UINT STREAMS_get_row( struct tagMSIVIEW *view, UINT row, MSIRECORD **rec )
{
MSISTREAMSVIEW *sv = (MSISTREAMSVIEW *)view;
TRACE("%p %d %p\n", sv, row, rec);
return msi_view_get_row( sv->db, view, row, rec );
}
static UINT STREAMS_set_row(struct tagMSIVIEW *view, UINT row, MSIRECORD *rec, UINT mask)
{
MSISTREAMSVIEW *sv = (MSISTREAMSVIEW *)view;
......@@ -347,7 +338,6 @@ static const MSIVIEWOPS streams_ops =
{
STREAMS_fetch_int,
STREAMS_fetch_stream,
STREAMS_get_row,
NULL,
STREAMS_set_string,
STREAMS_set_row,
......
......@@ -2124,7 +2124,6 @@ static const MSIVIEWOPS table_ops =
{
TABLE_fetch_int,
TABLE_fetch_stream,
TABLE_get_row,
TABLE_set_int,
TABLE_set_string,
TABLE_set_row,
......
......@@ -204,7 +204,6 @@ static const MSIVIEWOPS update_ops =
NULL,
NULL,
NULL,
NULL,
UPDATE_execute,
UPDATE_close,
UPDATE_get_dimensions,
......
......@@ -259,18 +259,6 @@ static UINT WHERE_fetch_stream( struct tagMSIVIEW *view, UINT row, UINT col, ISt
return table->view->ops->fetch_stream( table->view, rows[table->table_index], col, stm );
}
static UINT WHERE_get_row( struct tagMSIVIEW *view, UINT row, MSIRECORD **rec )
{
MSIWHEREVIEW *wv = (MSIWHEREVIEW *)view;
TRACE("%p %d %p\n", wv, row, rec );
if (!wv->tables)
return ERROR_FUNCTION_FAILED;
return msi_view_get_row( wv->db, view, row, rec );
}
static UINT WHERE_set_int(struct tagMSIVIEW *view, UINT row, UINT col, int val)
{
MSIWHEREVIEW *wv = (MSIWHEREVIEW*)view;
......@@ -1108,7 +1096,6 @@ static const MSIVIEWOPS where_ops =
{
WHERE_fetch_int,
WHERE_fetch_stream,
WHERE_get_row,
WHERE_set_int,
WHERE_set_string,
WHERE_set_row,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment