Lose unused stillborn psm threading stuff (didn't I already do this?)

This commit is contained in:
Panu Matilainen 2010-02-09 10:17:19 +02:00
parent a068a4dec1
commit d4d68037e1
2 changed files with 0 additions and 13 deletions

View File

@ -39,8 +39,6 @@ extern int _print_pkts;
extern int _psm_debug;
extern int _psm_threads;
extern int _rpmal_debug;
extern int _rpmdb_debug;
@ -262,8 +260,6 @@ struct poptOption rpmcliAllPoptTable[] = {
NULL, NULL},
{ "psmdebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_psm_debug, -1,
N_("debug package state machine"), NULL},
{ "psmthreads", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_psm_threads, -1,
N_("use threads for package state machine"), NULL},
{ "rpmaldebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_rpmal_debug, -1,
NULL, NULL},
{ "rpmdbdebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_rpmdb_debug, -1,

View File

@ -31,7 +31,6 @@
#define _PSM_DEBUG 0
int _psm_debug = _PSM_DEBUG;
int _psm_threads = 0;
/**
*/
@ -1121,17 +1120,9 @@ rpmpsm rpmpsmNew(rpmts ts, rpmte te)
return rpmpsmLink(psm, RPMDBG_M("rpmpsmNew"));
}
static void * rpmpsmThread(void * arg)
{
rpmpsm psm = arg;
return ((void *) rpmpsmStage(psm, psm->nstage));
}
static int rpmpsmNext(rpmpsm psm, pkgStage nstage)
{
psm->nstage = nstage;
if (_psm_threads)
return rpmsqJoin( rpmsqThread(rpmpsmThread, psm) );
return rpmpsmStage(psm, psm->nstage);
}