Skip to content

Commit

Permalink
Delete dummy code function (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
kakakaya authored Feb 10, 2024
1 parent cc00b41 commit b6a44f4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 38 deletions.
11 changes: 0 additions & 11 deletions frontend/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,6 @@
text = ""
}
function appendDummyInviteCode() {
if (text === undefined | !(typeof text === 'string' && text.startsWith('bsky-'))) {
text = GenerateDummyInviteCode()
} else {
text += "\n" + GenerateDummyInviteCode()
}
}
function unicode() {
text = ConvertRichUnicode(text, 'sansBold')
}
Expand All @@ -78,9 +70,6 @@
EventsOn("call-chikuwa", () => {
chikuwa()
})
EventsOn("call-appendDummyInviteCode", () => {
appendDummyInviteCode()
})
</script>

<main style="--wails-draggable:drag">
Expand Down
23 changes: 0 additions & 23 deletions frontend/src/topping/invite-code.js

This file was deleted.

5 changes: 1 addition & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,7 @@ func main() {
CommandMenu.AddText("バージョン", keys.OptionOrAlt("v"), func(_ *menu.CallbackData) {
app.Chikuwa("")
})
BlueskyCommandMenu := CommandMenu.AddSubmenu("Bluesky")
BlueskyCommandMenu.AddText("偽招待コード生成", nil, func(_ *menu.CallbackData) {
runtime.EventsEmit(app.ctx, "call-appendDummyInviteCode")
})
// BlueskyCommandMenu := CommandMenu.AddSubmenu("Bluesky")
WindowMenu := AppMenu.AddSubmenu("Window")
WindowMenu.AddText("中央に移動する", nil, func(_ *menu.CallbackData) {
runtime.WindowCenter(app.ctx)
Expand Down

0 comments on commit b6a44f4

Please sign in to comment.