From f8e50f2b0c493f29b11bc27bacf6e10e8c8072e4 Mon Sep 17 00:00:00 2001 From: whitequark Date: Sun, 10 Jan 2016 14:27:46 +0000 Subject: [PATCH] Remove redundant ksupport API. --- artiq/coredevice/core.py | 8 -------- artiq/runtime/ksupport.c | 6 ------ artiq/runtime/ksupport.h | 1 - 3 files changed, 15 deletions(-) diff --git a/artiq/coredevice/core.py b/artiq/coredevice/core.py index bd8483098..67b704ac5 100644 --- a/artiq/coredevice/core.py +++ b/artiq/coredevice/core.py @@ -45,10 +45,6 @@ def cache_get(key: TStr) -> TList(TInt32): def cache_put(key: TStr, value: TList(TInt32)): raise NotImplementedError("syscall not simulated") -@syscall -def cache_clear(key: TStr): - raise NotImplementedError("syscall not simulated") - class Core: """Core device driver. @@ -128,7 +124,3 @@ class Core: @kernel def put_cache(self, key, value): return cache_put(key, value) - - @kernel - def clear_cache(self, key): - return cache_clear(key) diff --git a/artiq/runtime/ksupport.c b/artiq/runtime/ksupport.c index af2610413..b35033ee8 100644 --- a/artiq/runtime/ksupport.c +++ b/artiq/runtime/ksupport.c @@ -124,7 +124,6 @@ static const struct symbol runtime_exports[] = { {"cache_get", &cache_get}, {"cache_put", &cache_put}, - {"cache_clear", &cache_clear}, /* end */ {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, ...) { struct msg_log request; diff --git a/artiq/runtime/ksupport.h b/artiq/runtime/ksupport.h index 144392a15..2194ef0db 100644 --- a/artiq/runtime/ksupport.h +++ b/artiq/runtime/ksupport.h @@ -14,7 +14,6 @@ void send_rpc(int service, const char *tag, ...); int recv_rpc(void *slot); struct artiq_list cache_get(const char *key); void cache_put(const char *key, struct artiq_list value); -void cache_clear(const char *key); void lognonl(const char *fmt, ...); void log(const char *fmt, ...);