Skip to content

Commit

Permalink
Abacus: remove unused menu module
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtnzlml committed May 11, 2024
1 parent 19b6429 commit 9d85f3e
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 162 deletions.
18 changes: 0 additions & 18 deletions src/abacus/schema.graphql
Expand Up @@ -6,15 +6,6 @@ schema {
mutation: Mutation
}

enum MenuSections {
COFFEE
TEA
SPECIALITIES
OTHERS
KOCHKADAS
CIABATTAS
}

enum PriceSortDirection {
LOW_TO_HIGH
HIGH_TO_LOW
Expand Down Expand Up @@ -278,14 +269,6 @@ type Image {
url: String!
}

type MenuQuery {
"""
Returns a specified section of our menu. This is to maintain one source of truth (in our
database) about the prices, descriptions, translations and similar.
"""
menu(clientLocale: SupportedLocale!, section: MenuSections!): [Product!]!
}

"Root mutation of the graph."
type Mutation {
auth: AuthMutation!
Expand Down Expand Up @@ -461,7 +444,6 @@ type Query {
auth: AuthQuery!
cats: CatsQuery!
commerce: CommerceQuery!
menu: MenuQuery!
}

type Redirect {
Expand Down
4 changes: 0 additions & 4 deletions src/abacus/server/src/graphql_schema.rs
Expand Up @@ -30,10 +30,6 @@ impl Query {
fn commerce() -> crate::commerce::api::CommerceQuery {
crate::commerce::api::CommerceQuery {}
}

fn menu() -> crate::menu::api::MenuQuery {
crate::menu::api::MenuQuery {}
}
}

#[derive(Clone, Copy, Debug)]
Expand Down
1 change: 0 additions & 1 deletion src/abacus/server/src/main.rs
Expand Up @@ -29,7 +29,6 @@ mod graphql_schema;
mod headers;
mod images;
mod locale;
mod menu;
mod pos;
mod price;
mod stripe;
Expand Down
20 changes: 0 additions & 20 deletions src/abacus/server/src/menu/api/mod.rs

This file was deleted.

119 changes: 0 additions & 119 deletions src/abacus/server/src/menu/mod.rs

This file was deleted.

0 comments on commit 9d85f3e

Please sign in to comment.