sr: Drop some obsolete and commented out code.

This commit is contained in:
Uwe Hermann 2012-01-02 14:25:52 +01:00
parent 9f45fb3aea
commit 3b7c8f54fc
3 changed files with 0 additions and 43 deletions

View File

@ -154,23 +154,6 @@ int sr_session_device_add(struct sr_device *device)
return SR_OK;
}
#if 0
void sr_session_pa_clear(void)
{
/*
* The protocols are pointers to the global set of PA plugins,
* so don't free them.
*/
g_slist_free(session->analyzers);
session->analyzers = NULL;
}
void sr_session_pa_add(struct sr_analyzer *an)
{
session->analyzers = g_slist_append(session->analyzers, an);
}
#endif
/**
* Clear all datafeed callbacks in the current session.
*

View File

@ -104,12 +104,6 @@ void sr_session_destroy(void);
void sr_session_device_clear(void);
int sr_session_device_add(struct sr_device *device);
#if 0
/* Protocol analyzers setup */
void sr_session_pa_clear(void);
void sr_session_pa_add(struct sr_analyzer *pa);
#endif
/* Datafeed setup */
void sr_session_datafeed_callback_clear(void);
void sr_session_datafeed_callback_add(sr_datafeed_callback callback);

View File

@ -84,15 +84,6 @@ enum {
SR_T_BOOL,
};
#if 0
/* (Unused) protocol decoder stack entry */
struct sr_protocol {
char *name;
int id;
int stackindex;
};
#endif
/* sr_datafeed_packet.type values */
enum {
SR_DF_HEADER,
@ -177,17 +168,6 @@ struct sr_output_format {
uint64_t *length_out);
};
#if 0
struct sr_analyzer {
char *name;
char *filename;
/*
* TODO: Parameters? If so, configured plugins need another struct.
* TODO: Input and output format?
*/
};
#endif
struct sr_datastore {
/* Size in bytes of the number of units stored in this datastore */
int ds_unitsize;