Commit 849647a8 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Deleted cached_set_conf_type (use mark_conference_as_changed instead).

parent 44249618
Thu Sep 5 10:14:40 1991 Per Cederqvist (ceder at lysator)
* cache.h, simple-cache.c, dbck-cache.c (cached_set_conf_type):
borttagen.
* conference.c, person.c: alla anrop till cached_set_conf_type
borttagna. (Funktionen anropades bara precis efter
mark_conference_as_changed.
* simple-cache.c: Fixade lite stavfel. La till lite nya defensiva
kontroller.
......
/*
* $Id: cache.h,v 0.5 1991/08/28 02:21:58 ceder Exp $
* $Id: cache.h,v 0.6 1991/09/05 08:32:51 ceder Exp $
*
* This file contains the cached data that the server stores.
* .h file created by ceder 1990-04-18
......@@ -86,8 +86,8 @@ cached_conf_exists( Conf_no conf_no );
/*
* Calls for the cacheing of conf_type:
* cached_get_conf_type() returns the type, and
* cached_set_conf_type() sets the type.
* cached_get_conf_type() returns the type.
* The type is set when mark_conference_as_changed is called.
*/
/* Get conference type */
......@@ -97,24 +97,12 @@ extern Conf_type
cached_get_conf_type (Conf_no conf_no);
/*
* Set the type. This call is used whenever a conference is created or the
* conf_type is changed.
*/
extern void
cached_set_conf_type (Conf_no conf_no,
Conf_type type);
/*
* Get/set garb_nice for a certain conference.
* Get garb_nice for a certain conference.
* It is set when mark_conference_as_changed is called.
*/
extern Garb_nice
cached_get_garb_nice (Conf_no conf_no);
extern void
cached_set_garb_nice (Conf_no conf_no,
Garb_nice nice);
extern Local_text_no
cached_get_highest_local_no (Conf_no conf_no);
......
......@@ -4,7 +4,7 @@
* All atomic calls that deals with conferences.
*/
static char *rcsid = "$Id: conference.c,v 0.9 1991/08/28 02:21:54 ceder Exp $";
static char *rcsid = "$Id: conference.c,v 0.10 1991/09/05 08:32:50 ceder Exp $";
#include <time.h>
......@@ -236,10 +236,8 @@ do_create_conf(String name,
conf_c->members = EMPTY_MEMBER_LIST;
conf_c->texts = EMPTY_TEXT_LIST;
mark_conference_as_changed( conf_no );
mark_conference_as_changed (conf_no);
cached_set_conf_type( conf_no, type );
return conf_no;
}
......@@ -765,9 +763,7 @@ set_conf_type (Conf_no conf_no,
}
conf_c->type = type;
mark_conference_as_changed( conf_no );
cached_set_conf_type( conf_no, type );
mark_conference_as_changed (conf_no);
return OK;
}
......
......@@ -8,7 +8,7 @@
* Also save time as a time_t instead of a struct tm.
*/
static char *rcsid = "$Id: dbck-cache.c,v 0.5 1991/08/30 03:35:57 ceder Exp $";
static char *rcsid = "$Id: dbck-cache.c,v 0.6 1991/09/05 08:32:48 ceder Exp $";
/*
......@@ -92,14 +92,6 @@ BUGDECL;
}
extern void
cached_set_conf_type (Conf_no conf_no,
Conf_type type)
{
return; /* No need to do anything in this simulation. */
}
extern Conf_type
cached_get_conf_type (Conf_no conf_no)
{
......
......@@ -4,7 +4,7 @@
* All atomic calls that deals with persons.
*/
static char *rcsid = "$Id: person.c,v 0.6 1991/08/28 02:21:09 ceder Exp $";
static char *rcsid = "$Id: person.c,v 0.7 1991/09/05 08:32:46 ceder Exp $";
#include <time.h>
#include <string.h>
......@@ -419,9 +419,7 @@ create_person (String name,
mailbox->members = EMPTY_MEMBER_LIST;
mailbox->texts = EMPTY_TEXT_LIST;
mark_conference_as_changed( new_user );
cached_set_conf_type(new_user, mailbox->type);
mark_conference_as_changed (new_user);
/* allocate Person */
......
......@@ -9,7 +9,7 @@
* New save algorithm by ceder.
*/
static char *rcsid = "$Id: simple-cache.c,v 0.14 1991/09/05 08:25:58 ceder Exp $";
static char *rcsid = "$Id: simple-cache.c,v 0.15 1991/09/05 08:32:44 ceder Exp $";
......@@ -249,18 +249,6 @@ cached_change_name( Conf_no name_num,
}
extern void
cached_set_conf_type (Conf_no conf_no,
Conf_type type)
{
if ( conf_no < 1 || conf_no >= next_free_num )
restart_kom("cached_set_conf_type(%d, ----): next_free_num==%d",
conf_no, next_free_num);
small_conf_arr[ conf_no ]->type = type;
}
extern Conf_type
cached_get_conf_type (Conf_no conf_no)
{
......
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