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)):
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)

View File

@ -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;

View File

@ -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, ...);