Remove dead code
This commit is contained in:
parent
11d4a52b2d
commit
f28f71c978
1 changed files with 0 additions and 10 deletions
|
@ -95,16 +95,6 @@ pub const ApiServer = struct {
|
||||||
return note;
|
return note;
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn createNote(self: *ApiServer, info: CreateInfo(models.Note)) !models.Note {
|
|
||||||
const id = Uuid.randV4(self.prng.random());
|
|
||||||
// TODO: check for dupes
|
|
||||||
|
|
||||||
const note = reify(models.Note, id, info);
|
|
||||||
try self.db.insert(models.Note, note);
|
|
||||||
|
|
||||||
return note;
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn createUser(self: *ApiServer, info: CreateInfo(models.User)) !models.User {
|
pub fn createUser(self: *ApiServer, info: CreateInfo(models.User)) !models.User {
|
||||||
const id = Uuid.randV4(self.prng.random());
|
const id = Uuid.randV4(self.prng.random());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue