forked from M-Labs/artiq
1
0
Fork 0

Remove redundant ksupport API.

This commit is contained in:
whitequark 2016-01-10 14:27:46 +00:00
parent 72a3a12d52
commit f8e50f2b0c
3 changed files with 0 additions and 15 deletions

View File

@ -45,10 +45,6 @@ def cache_get(key: TStr) -> TList(TInt32):
def cache_put(key: TStr, value: TList(TInt32)): def cache_put(key: TStr, value: TList(TInt32)):
raise NotImplementedError("syscall not simulated") raise NotImplementedError("syscall not simulated")
@syscall
def cache_clear(key: TStr):
raise NotImplementedError("syscall not simulated")
class Core: class Core:
"""Core device driver. """Core device driver.
@ -128,7 +124,3 @@ class Core:
@kernel @kernel
def put_cache(self, key, value): def put_cache(self, key, value):
return cache_put(key, value) return cache_put(key, value)
@kernel
def clear_cache(self, key):
return cache_clear(key)

View File

@ -124,7 +124,6 @@ static const struct symbol runtime_exports[] = {
{"cache_get", &cache_get}, {"cache_get", &cache_get},
{"cache_put", &cache_put}, {"cache_put", &cache_put},
{"cache_clear", &cache_clear},
/* end */ /* end */
{NULL, NULL} {NULL, NULL}
@ -492,11 +491,6 @@ void cache_put(const char *key, struct artiq_list value)
} }
} }
void cache_clear(const char *key)
{
cache_put(key, (struct artiq_list) { 0, NULL });
}
void lognonl(const char *fmt, ...) void lognonl(const char *fmt, ...)
{ {
struct msg_log request; struct msg_log request;

View File

@ -14,7 +14,6 @@ void send_rpc(int service, const char *tag, ...);
int recv_rpc(void *slot); int recv_rpc(void *slot);
struct artiq_list cache_get(const char *key); struct artiq_list cache_get(const char *key);
void cache_put(const char *key, struct artiq_list value); void cache_put(const char *key, struct artiq_list value);
void cache_clear(const char *key);
void lognonl(const char *fmt, ...); void lognonl(const char *fmt, ...);
void log(const char *fmt, ...); void log(const char *fmt, ...);