From 9b95c27c9c4aee02e45e81756904006b759d4b64 Mon Sep 17 00:00:00 2001
From: Mike McCormack <mike@codeweavers.com>
Date: Thu, 26 Oct 2006 17:08:43 +0900
Subject: [PATCH] msi: Remove some unused functions.

---
 dlls/msi/alter.c  | 22 ++--------------------
 dlls/msi/delete.c | 22 ++--------------------
 dlls/msi/join.c   | 22 ++--------------------
 3 files changed, 6 insertions(+), 60 deletions(-)

diff --git a/dlls/msi/alter.c b/dlls/msi/alter.c
index 396354cefc7..24a11ab694a 100644
--- a/dlls/msi/alter.c
+++ b/dlls/msi/alter.c
@@ -58,24 +58,6 @@ static UINT ALTER_fetch_stream( struct tagMSIVIEW *view, UINT row, UINT col, ISt
     return ERROR_FUNCTION_FAILED;
 }
 
-static UINT ALTER_set_int( struct tagMSIVIEW *view, UINT row, UINT col, UINT val )
-{
-    MSIALTERVIEW *av = (MSIALTERVIEW*)view;
-
-    TRACE("%p %d %d %04x\n", av, row, col, val );
-
-    return ERROR_FUNCTION_FAILED;
-}
-
-static UINT ALTER_insert_row( struct tagMSIVIEW *view, MSIRECORD *record )
-{
-    MSIALTERVIEW *av = (MSIALTERVIEW*)view;
-
-    TRACE("%p %p\n", av, record );
-
-    return ERROR_FUNCTION_FAILED;
-}
-
 static UINT ALTER_execute( struct tagMSIVIEW *view, MSIRECORD *record )
 {
     MSIALTERVIEW *av = (MSIALTERVIEW*)view;
@@ -146,8 +128,8 @@ static const MSIVIEWOPS alter_ops =
 {
     ALTER_fetch_int,
     ALTER_fetch_stream,
-    ALTER_set_int,
-    ALTER_insert_row,
+    NULL,
+    NULL,
     ALTER_execute,
     ALTER_close,
     ALTER_get_dimensions,
diff --git a/dlls/msi/delete.c b/dlls/msi/delete.c
index 6a9d62adc7f..3e8d69485e7 100644
--- a/dlls/msi/delete.c
+++ b/dlls/msi/delete.c
@@ -73,24 +73,6 @@ static UINT DELETE_fetch_stream( struct tagMSIVIEW *view, UINT row, UINT col, IS
     return ERROR_FUNCTION_FAILED;
 }
 
-static UINT DELETE_set_int( struct tagMSIVIEW *view, UINT row, UINT col, UINT val )
-{
-    MSIDELETEVIEW *dv = (MSIDELETEVIEW*)view;
-
-    TRACE("%p %d %d %04x\n", dv, row, col, val );
-
-    return ERROR_FUNCTION_FAILED;
-}
-
-static UINT DELETE_insert_row( struct tagMSIVIEW *view, MSIRECORD *record )
-{
-    MSIDELETEVIEW *dv = (MSIDELETEVIEW*)view;
-
-    TRACE("%p %p\n", dv, record );
-
-    return ERROR_FUNCTION_FAILED;
-}
-
 static UINT DELETE_execute( struct tagMSIVIEW *view, MSIRECORD *record )
 {
     MSIDELETEVIEW *dv = (MSIDELETEVIEW*)view;
@@ -195,8 +177,8 @@ static const MSIVIEWOPS delete_ops =
 {
     DELETE_fetch_int,
     DELETE_fetch_stream,
-    DELETE_set_int,
-    DELETE_insert_row,
+    NULL,
+    NULL,
     DELETE_execute,
     DELETE_close,
     DELETE_get_dimensions,
diff --git a/dlls/msi/join.c b/dlls/msi/join.c
index fda6b1b309b..3462521e086 100644
--- a/dlls/msi/join.c
+++ b/dlls/msi/join.c
@@ -103,24 +103,6 @@ static UINT JOIN_fetch_stream( struct tagMSIVIEW *view, UINT row, UINT col, IStr
     return table->ops->fetch_stream( table, row, col, stm );
 }
 
-static UINT JOIN_set_int( struct tagMSIVIEW *view, UINT row, UINT col, UINT val )
-{
-    MSIJOINVIEW *jv = (MSIJOINVIEW*)view;
-
-    TRACE("%p %d %d %04x\n", jv, row, col, val );
-
-    return ERROR_FUNCTION_FAILED;
-}
-
-static UINT JOIN_insert_row( struct tagMSIVIEW *view, MSIRECORD *record )
-{
-    MSIJOINVIEW *jv = (MSIJOINVIEW*)view;
-
-    TRACE("%p %p\n", jv, record );
-
-    return ERROR_FUNCTION_FAILED;
-}
-
 static int join_key_compare(const void *l, const void *r)
 {
     const UINT *left = l, *right = r;
@@ -345,8 +327,8 @@ static const MSIVIEWOPS join_ops =
 {
     JOIN_fetch_int,
     JOIN_fetch_stream,
-    JOIN_set_int,
-    JOIN_insert_row,
+    NULL,
+    NULL,
     JOIN_execute,
     JOIN_close,
     JOIN_get_dimensions,
-- 
GitLab