summaryrefslogtreecommitdiffstats
path: root/libmsi
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-12-07 10:48:59 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2012-12-07 10:51:26 +0100
commit59c8609d9e77e9edce1c6ea7ef914deeed248bdd (patch)
treed980d90c689d8deec91cb40c0458796560e6ba02 /libmsi
parent7cbed9718d6af0ce10cd3809f1e95859a4c56ec2 (diff)
parent3bae43f78b9baf75395981f3225b741c150bec64 (diff)
Merge branch 'pre-gsf'
Conflicts: libmsi/msipriv.h libmsi/record.c
Diffstat (limited to 'libmsi')
-rw-r--r--libmsi/msipriv.h1
-rw-r--r--libmsi/record.c34
2 files changed, 0 insertions, 35 deletions
diff --git a/libmsi/msipriv.h b/libmsi/msipriv.h
index 89554e0..555075f 100644
--- a/libmsi/msipriv.h
+++ b/libmsi/msipriv.h
@@ -386,7 +386,6 @@ extern unsigned _libmsi_record_get_string( const LibmsiRecord *, unsigned, char
extern intptr_t _libmsi_record_get_int_ptr( const LibmsiRecord *, unsigned );
extern unsigned _libmsi_record_save_stream( const LibmsiRecord *, unsigned, char *, unsigned *);
extern unsigned _libmsi_record_load_stream(LibmsiRecord *, unsigned, GsfInput *);
-extern unsigned _libmsi_record_save_stream_to_file( const LibmsiRecord *, unsigned, const char *);
extern unsigned _libmsi_record_load_stream_from_file( LibmsiRecord *, unsigned, const char *);
extern unsigned _libmsi_record_copy_field( LibmsiRecord *, unsigned, LibmsiRecord *, unsigned );
extern LibmsiRecord *_libmsi_record_clone( LibmsiRecord * );
diff --git a/libmsi/record.c b/libmsi/record.c
index d98686a..d1834fe 100644
--- a/libmsi/record.c
+++ b/libmsi/record.c
@@ -635,40 +635,6 @@ unsigned _libmsi_record_get_gsf_input( const LibmsiRecord *rec, unsigned iField,
return LIBMSI_RESULT_SUCCESS;
}
-static unsigned msi_dump_stream_to_file( GsfInput *stm, const char *name )
-{
- GsfOutput *out;
- bool ok;
-
- out = gsf_output_stdio_new( name, NULL );
- if( !out )
- return LIBMSI_RESULT_FUNCTION_FAILED;
-
- gsf_input_seek( stm, 0, G_SEEK_SET );
- ok = gsf_input_copy( stm, out );
- g_object_unref(G_OBJECT(out));
- if( !ok )
- return LIBMSI_RESULT_FUNCTION_FAILED;
- return LIBMSI_RESULT_SUCCESS;
-}
-
-unsigned _libmsi_record_save_stream_to_file( const LibmsiRecord *rec, unsigned iField, const char *name )
-{
- GsfInput *stm = NULL;
- unsigned r;
-
- TRACE("%p %u %s\n", rec, iField, debugstr_a(name));
-
- r = _libmsi_record_get_gsf_input( rec, iField, &stm );
- if( r == LIBMSI_RESULT_SUCCESS )
- {
- r = msi_dump_stream_to_file( stm, name );
- g_object_unref(G_OBJECT(stm));
- }
-
- return r;
-}
-
LibmsiRecord *_libmsi_record_clone(LibmsiRecord *rec)
{
LibmsiRecord *clone;